#CB9DFF#CB9DFF

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

Color values

HEX#CB9DFF
RGBrgb(203, 157, 255)
HSLhsl(268, 100%, 81%)
HSVhsv(268, 38%, 100%)
CMYKcmyk(20.4%, 38.4%, 0%, 0%)
CIE-LABlab(72.25, 35.59, -42.38)
CIE-LCHlch(72.25, 55.35, 310.02°)
OKLaboklab(77.5% 0.082 -0.1176)
OKLCHoklch(77.5% 0.143 304.9)
XYZxyz(54.7319, 44.0307, 100.2038)
Luminance0.4403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB9DFF #D1FF9D
analogous
#9DA0FF #CB9DFF #FC9DFF
triadic
#CB9DFF #FFCB9D #9DFFCB
tetradic
#CB9DFF #FF9DA0 #D1FF9D #9DFFFC
square
#CB9DFF #FF9DA0 #D1FF9D #9DFFFC
split-complementary
#CB9DFF #FFFC9D #A0FF9D
monochromatic
#8A23FF #AB60FF #CB9DFF #EBDAFF #EFE0FF

Accessibility & contrast

On white

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

On black

9.81
#CB9DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB9DFF
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB9DFF#FFFFFF#000000##000000
##CB9DFF1.002.149.819.81
#FFFFFF2.141.0021.0021.00
#0000009.8121.001.001.00
##0000009.8121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cb9dff;
/* rgb */ color: rgb(203, 157, 255);
/* oklch */ color: oklch(77.5% 0.143 304.9);
Tailwind
colors: {
  custom: {
    50: '#dcbaff',
    500: '#cb9dff',
    950: '#000000',
  },
}
SCSS
$custom: #cb9dff;
$custom-light: #dcbaff;
$custom-dark: #000000;
JSON
{
  "hex": "#cb9dff",
  "rgb": {
    "r": 203,
    "g": 157,
    "b": 255
  },
  "hsl": {
    "h": 268.163,
    "s": 100,
    "l": 80.784
  },
  "oklch": {
    "l": 0.77502,
    "c": 0.1434,
    "h": 304.9
  },
  "luminance": 0.4403
}

Semantic roles & 50–950 ramp

primary
#CB9DFF
secondary
#E7F7D4
accent
#E6007A
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CB9DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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