#CF9DF2#CF9DF2

#CF9DF2 is a light, vivid violet. Relative luminance 0.438; OKLCH L 77.3% C 0.129 H 310.6°. Best body text is #000000 at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#CF9DF2
RGBrgb(207, 157, 242)
HSLhsl(275, 77%, 78%)
HSVhsv(275, 35%, 95%)
CMYKcmyk(14.5%, 35.1%, 0%, 5.1%)
CIE-LABlab(72.09, 33.95, -35.55)
CIE-LCHlch(72.09, 49.15, 313.68°)
OKLaboklab(77.29% 0.0838 -0.0979)
OKLCHoklch(77.29% 0.129 310.6)
XYZxyz(53.8133, 43.7909, 89.6048)
Luminance0.4379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF9DF2 #C0F29D
analogous
#A49DF2 #CF9DF2 #F29DEB
triadic
#CF9DF2 #F2CF9D #9DF2CF
tetradic
#CF9DF2 #F2A49D #C0F29D #9DEBF2
square
#CF9DF2 #F2A49D #C0F29D #9DEBF2
split-complementary
#CF9DF2 #EBF29D #9DF2A4
monochromatic
#9A31E4 #B567EB #CF9DF2 #E9D3F9 #F2E4FB

Accessibility & contrast

On white

2.15
#CF9DF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.76
#CF9DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF9DF2
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF9DF2#FFFFFF#000000##000000
##CF9DF21.002.159.769.76
#FFFFFF2.151.0021.0021.00
#0000009.7621.001.001.00
##0000009.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DAEF5
Deuteranopia (green-blind)
#99B2F0
Tritanopia (blue-blind)
#CBA9BD
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cf9df2;
/* rgb */ color: rgb(207, 157, 242);
/* oklch */ color: oklch(77.3% 0.129 310.6);
Tailwind
colors: {
  custom: {
    50: '#dfbaf6',
    500: '#cf9df2',
    950: '#000000',
  },
}
SCSS
$custom: #cf9df2;
$custom-light: #dfbaf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf9df2",
  "rgb": {
    "r": 207,
    "g": 157,
    "b": 242
  },
  "hsl": {
    "h": 275.294,
    "s": 76.577,
    "l": 78.235
  },
  "oklch": {
    "l": 0.77291,
    "c": 0.1289,
    "h": 310.6
  },
  "luminance": 0.4379
}

Semantic roles & 50–950 ramp

primary
#CF9DF2
secondary
#E3F3D8
accent
#D90D61
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185

Preview Lab

Preview with #CF9DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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