#CB8DEC#CB8DEC

#CB8DEC is a light, vivid violet. Relative luminance 0.378; OKLCH L 73.9% C 0.147 H 313.2°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#CB8DEC
RGBrgb(203, 141, 236)
HSLhsl(279, 71%, 74%)
HSVhsv(279, 40%, 93%)
CMYKcmyk(14%, 40.3%, 0%, 7.5%)
CIE-LABlab(67.88, 40.18, -38.85)
CIE-LCHlch(67.88, 55.89, 315.97°)
OKLaboklab(73.93% 0.1007 -0.1074)
OKLCHoklch(73.93% 0.147 313.2)
XYZxyz(49.2913, 37.8034, 84.0408)
Luminance0.3780 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB8DEC #AEEC8D
analogous
#9C8DEC #CB8DEC #EC8DDE
triadic
#CB8DEC #ECCB8D #8DECCB
tetradic
#CB8DEC #EC9C8D #AEEC8D #8DDEEC
square
#CB8DEC #EC9C8D #AEEC8D #8DDEEC
split-complementary
#CB8DEC #DEEC8D #8DEC9C
monochromatic
#9B24DA #B359E3 #CB8DEC #E3C1F5 #F3E5FB

Accessibility & contrast

On white

2.45
#CB8DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#CB8DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB8DEC
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB8DEC#FFFFFF#000000##000000
##CB8DEC1.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA2F0
Deuteranopia (green-blind)
#8BA7E9
Tritanopia (blue-blind)
#C89AB1
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cb8dec;
/* rgb */ color: rgb(203, 141, 236);
/* oklch */ color: oklch(73.9% 0.147 313.2);
Tailwind
colors: {
  custom: {
    50: '#dcaff2',
    500: '#cb8dec',
    950: '#000000',
  },
}
SCSS
$custom: #cb8dec;
$custom-light: #dcaff2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb8dec",
  "rgb": {
    "r": 203,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 279.158,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73932,
    "c": 0.14722,
    "h": 313.2
  },
  "luminance": 0.37802
}

Semantic roles & 50–950 ramp

primary
#CB8DEC
secondary
#E2F2D9
accent
#D31255
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151017
muted
#837F85

Preview Lab

Preview with #CB8DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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