#CB9DFE#CB9DFE

#CB9DFE is a light, vivid violet. Relative luminance 0.440; OKLCH L 77.5% C 0.142 H 305.1°. Best body text is #000000 at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#CB9DFE
RGBrgb(203, 157, 254)
HSLhsl(268, 98%, 81%)
HSVhsv(268, 38%, 100%)
CMYKcmyk(20.1%, 38.2%, 0%, 0.4%)
CIE-LABlab(72.21, 35.37, -41.91)
CIE-LCHlch(72.21, 54.84, 310.16°)
OKLaboklab(77.46% 0.0818 -0.1163)
OKLCHoklch(77.46% 0.142 305.1)
XYZxyz(54.5713, 43.9665, 99.3582)
Luminance0.4397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB9DFE #D0FE9D
analogous
#9D9FFE #CB9DFE #FC9DFE
triadic
#CB9DFE #FECB9D #9DFECB
tetradic
#CB9DFE #FE9D9F #D0FE9D #9DFEFC
square
#CB9DFE #FE9D9F #D0FE9D #9DFEFC
split-complementary
#CB9DFE #FEFC9D #9FFE9D
monochromatic
#8B24FD #AB60FD #CB9DFE #EBDAFF #EFE1FF

Accessibility & contrast

On white

2.14
#CB9DFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.79
#CB9DFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB9DFE
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB9DFE#FFFFFF#000000##000000
##CB9DFE1.002.149.799.79
#FFFFFF2.141.0021.0021.00
#0000009.7921.001.001.00
##0000009.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#87B0FF
Deuteranopia (green-blind)
#91B1FB
Tritanopia (blue-blind)
#C3ACC2
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cb9dfe;
/* rgb */ color: rgb(203, 157, 254);
/* oklch */ color: oklch(77.5% 0.142 305.1);
Tailwind
colors: {
  custom: {
    50: '#dcbaff',
    500: '#cb9dfe',
    950: '#000000',
  },
}
SCSS
$custom: #cb9dfe;
$custom-light: #dcbaff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb9dfe",
  "rgb": {
    "r": 203,
    "g": 157,
    "b": 254
  },
  "hsl": {
    "h": 268.454,
    "s": 97.98,
    "l": 80.588
  },
  "oklch": {
    "l": 0.77455,
    "c": 0.14217,
    "h": 305.1
  },
  "luminance": 0.43966
}

Semantic roles & 50–950 ramp

primary
#CB9DFE
secondary
#E6F7D4
accent
#E60079
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB9DFE

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

Preview Lab → · Contrast checker → · Palette generator →

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