#B388FF colour

#B388FF is a light violet close to CSS mediumpurple. RGB 179, 136, 255, HSL 262, 100%, 77%. Black text passes AAA (7.88:1), white fails (2.66:1).

#B388FF

Nearest CSS name
mediumpurple #9370db (not an exact match)
Described as
a light violet
Red, green, blue
179, 136, 255
Material 2014
Deep Purple A100
Web safe
No
Luminance
0.3441 (WCAG relative luminance, 0 is black, 1 is white)

Colour codes

HEX#b388ff
RGBrgb(179, 136, 255)
RGB (percent)rgb(70.2% 53.3% 100%)
HSLhsl(261.7, 100%, 76.7%)
HSV / HSBhsv(261.7, 46.7%, 100%)
HWBhwb(261.7 53.3% 0%)
CMYK (naive)cmyk(30%, 47%, 0%, 0%)
CIELAB (D50)lab(64.76% 35.23 -54)
OKLCHoklch(71.73% 0.1714 298.68)
Decimal11766015

CMYK here is the plain formula with no colour profile, so treat it as a starting point; a printer's profile gives the real ink values. CIELAB uses a D50 white point, as CSS lab() does. HSV is not a CSS function, so it is shown for design apps only.

Contrast with white and black text

White text, 2.66:1The quick brown fox jumps over the lazy dog.
Black text, 7.88:1The quick brown fox jumps over the lazy dog.
TextRatioAA normal (4.5)AA large (3)AAA normal (7)AAA large (4.5)
White2.66:1FailFailFailFail
Black7.88:1PassPassPassPass

Black text is the better choice on #B388FF (7.88:1). Ratios use the WCAG 2.2 formula; large text means at least 24px, or 18.66px bold. Check another pair.

Tints and shades

Mixed with white, then with black, in ten even steps (straight sRGB mixing, as most design tools do).

Colour harmonies

Hue turned around the HSL colour wheel, saturation and lightness kept.

Complementary

The hue opposite on the colour wheel (180°).

Analogous

Neighbours 30° either side.

Triadic

Three hues 120° apart.

Split complementary

The two hues either side of the complement (150° and 210°).

Tetradic (square)

Four hues 90° apart.

How it looks with colour blindness

Simulated with the Machado, Oliveira and Fernandes (2009) matrices at full severity, applied in linear RGB; achromatopsia shows the colour's luminance as grey. Milder forms (protanomaly, deuteranomaly) are far more common and shift colours less. Never use colour as the only way to carry meaning.

Material Deep Purple palette

CSS

Text colourcolor: #b388ff;
Backgroundbackground-color: #b388ff;
Borderborder: 1px solid #b388ff;
Half transparentbackground-color: rgb(179 136 255 / 50%);
Custom property--colour-main: #b388ff;
Gradient to a darker shadebackground: linear-gradient(135deg, #b388ff, #6b5299);
Gradient from a lighter tintbackground: linear-gradient(180deg, #d1b8ff, #b388ff);
Text on this colourbackground-color: #b388ff; color: #000;

Similar named colours

Distance is measured in OKLab, scaled by 100; under about 2 is hard to tell apart side by side.

Convert #B388FF to other formats · Build a palette from it · Check contrast · All named colours

Colour names from CSS Color Module Level 4. Palette values from the Tailwind CSS v3 default palette (MIT licence) and the Material Design 2014 colour palette as published in Material Design Lite (Apache License 2.0). All other values are calculated from the hex code.