#CB9DF2#CB9DF2

#CB9DF2 is a light, vivid violet. Relative luminance 0.432; OKLCH L 76.9% C 0.127 H 308.5°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).

Color values

HEX#CB9DF2
RGBrgb(203, 157, 242)
HSLhsl(272, 77%, 78%)
HSVhsv(272, 35%, 95%)
CMYKcmyk(16.1%, 35.1%, 0%, 5.1%)
CIE-LABlab(71.71, 32.75, -36.17)
CIE-LCHlch(71.71, 48.79, 312.16°)
OKLaboklab(76.91% 0.0793 -0.0998)
OKLCHoklch(76.91% 0.127 308.5)
XYZxyz(52.7096, 43.2218, 89.5530)
Luminance0.4322 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB9DF2 #C4F29D
analogous
#A09DF2 #CB9DF2 #F29DEE
triadic
#CB9DF2 #F2CB9D #9DF2CB
tetradic
#CB9DF2 #F2A09D #C4F29D #9DEEF2
square
#CB9DF2 #F2A09D #C4F29D #9DEEF2
split-complementary
#CB9DF2 #EEF29D #9DF2A0
monochromatic
#9231E4 #AE67EB #CB9DF2 #E8D3F9 #F1E4FB

Accessibility & contrast

On white

2.18
#CB9DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.64
#CB9DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CB9DF2
9.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB9DF2#FFFFFF#000000##000000
##CB9DF21.002.189.649.64
#FFFFFF2.181.0021.0021.00
#0000009.6421.001.001.00
##0000009.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CAEF5
Deuteranopia (green-blind)
#96B0F0
Tritanopia (blue-blind)
#C6A9BC
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cb9df2;
/* rgb */ color: rgb(203, 157, 242);
/* oklch */ color: oklch(76.9% 0.127 308.5);
Tailwind
colors: {
  custom: {
    50: '#dcbaf6',
    500: '#cb9df2',
    950: '#000000',
  },
}
SCSS
$custom: #cb9df2;
$custom-light: #dcbaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cb9df2",
  "rgb": {
    "r": 203,
    "g": 157,
    "b": 242
  },
  "hsl": {
    "h": 272.471,
    "s": 76.577,
    "l": 78.235
  },
  "oklch": {
    "l": 0.76911,
    "c": 0.12743,
    "h": 308.5
  },
  "luminance": 0.43221
}

Semantic roles & 50–950 ramp

primary
#CB9DF2
secondary
#E4F3D8
accent
#D90D6A
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151117
muted
#838085

Preview Lab

Preview with #CB9DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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