#CF9DFF#CF9DFF

#CF9DFF is a light, vivid violet. Relative luminance 0.446; OKLCH L 77.9% C 0.145 H 306.8°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#CF9DFF
RGBrgb(207, 157, 255)
HSLhsl(271, 100%, 81%)
HSVhsv(271, 38%, 100%)
CMYKcmyk(18.8%, 38.4%, 0%, 0%)
CIE-LABlab(72.63, 36.74, -41.77)
CIE-LCHlch(72.63, 55.63, 311.34°)
OKLaboklab(77.88% 0.0866 -0.1158)
OKLCHoklch(77.88% 0.145 306.8)
XYZxyz(55.8356, 44.5998, 100.2555)
Luminance0.4460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF9DFF #CDFF9D
analogous
#9E9DFF #CF9DFF #FF9DFE
triadic
#CF9DFF #FFCF9D #9DFFCF
tetradic
#CF9DFF #FF9E9D #CDFF9D #9DFEFF
square
#CF9DFF #FF9E9D #CDFF9D #9DFEFF
split-complementary
#CF9DFF #FEFF9D #9DFF9E
monochromatic
#9323FF #B160FF #CF9DFF #EDDAFF #F0E0FF

Accessibility & contrast

On white

2.12
#CF9DFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.92
#CF9DFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF9DFF
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF9DFF#FFFFFF#000000##000000
##CF9DFF1.002.129.929.92
#FFFFFF2.121.0021.0021.00
#0000009.9221.001.001.00
##0000009.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88B0FF
Deuteranopia (green-blind)
#93B3FC
Tritanopia (blue-blind)
#C8ACC2
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #cf9dff;
/* rgb */ color: rgb(207, 157, 255);
/* oklch */ color: oklch(77.9% 0.145 306.8);
Tailwind
colors: {
  custom: {
    50: '#dfbaff',
    500: '#cf9dff',
    950: '#000000',
  },
}
SCSS
$custom: #cf9dff;
$custom-light: #dfbaff;
$custom-dark: #000000;
JSON
{
  "hex": "#cf9dff",
  "rgb": {
    "r": 207,
    "g": 157,
    "b": 255
  },
  "hsl": {
    "h": 270.612,
    "s": 100,
    "l": 80.784
  },
  "oklch": {
    "l": 0.77876,
    "c": 0.14458,
    "h": 306.8
  },
  "luminance": 0.44599
}

Semantic roles & 50–950 ramp

primary
#CF9DFF
secondary
#E5F7D4
accent
#E60070
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151218
muted
#838186

Preview Lab

Preview with #CF9DFF

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

Preview Lab → · Contrast checker → · Palette generator →

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