#B27DEC#B27DEC

#B27DEC is a light, vivid violet. Relative luminance 0.302; OKLCH L 68.8% C 0.165 H 304.5°. Best body text is #000000 at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#B27DEC
RGBrgb(178, 125, 236)
HSLhsl(269, 74%, 71%)
HSVhsv(269, 47%, 93%)
CMYKcmyk(24.6%, 47%, 0%, 7.5%)
CIE-LABlab(61.82, 41.85, -48.54)
CIE-LCHlch(61.82, 64.10, 310.77°)
OKLaboklab(68.8% 0.0933 -0.1359)
OKLCHoklch(68.8% 0.165 304.5)
XYZxyz(40.8308, 30.1885, 83.0165)
Luminance0.3019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B27DEC #B7EC7D
analogous
#7D7FEC #B27DEC #EA7DEC
triadic
#B27DEC #ECB27D #7DECB2
tetradic
#B27DEC #EC7D7F #B7EC7D #7DECEA
square
#B27DEC #EC7D7F #B7EC7D #7DECEA
split-complementary
#B27DEC #ECEA7D #7FEC7D
monochromatic
#731ED0 #9248E4 #B27DEC #D2B2F4 #EFE4FB

Accessibility & contrast

On white

2.98
#B27DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.04
#B27DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B27DEC
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B27DEC#FFFFFF#000000##000000
##B27DEC1.002.987.047.04
#FFFFFF2.981.0021.0021.00
#0000007.0421.001.001.00
##0000007.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E94F0
Deuteranopia (green-blind)
#6C95E9
Tritanopia (blue-blind)
#A890A9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #b27dec;
/* rgb */ color: rgb(178, 125, 236);
/* oklch */ color: oklch(68.8% 0.165 304.5);
Tailwind
colors: {
  custom: {
    50: '#cba4f2',
    500: '#b27dec',
    950: '#000000',
  },
}
SCSS
$custom: #b27dec;
$custom-light: #cba4f2;
$custom-dark: #000000;
JSON
{
  "hex": "#b27dec",
  "rgb": {
    "r": 178,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 268.649,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.68801,
    "c": 0.16488,
    "h": 304.5
  },
  "luminance": 0.30188
}

Semantic roles & 50–950 ramp

primary
#B27DEC
secondary
#E3F1D3
accent
#D70F77
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85

Preview Lab

Preview with #B27DEC

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B27DEC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva