#CF8DEC#CF8DEC

#CF8DEC is a light, vivid purple. Relative luminance 0.384; OKLCH L 74.3% C 0.149 H 315.0°. Best body text is #000000 at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#CF8DEC
RGBrgb(207, 141, 236)
HSLhsl(282, 71%, 74%)
HSVhsv(282, 40%, 93%)
CMYKcmyk(12.3%, 40.3%, 0%, 7.5%)
CIE-LABlab(68.29, 41.35, -38.16)
CIE-LCHlch(68.29, 56.27, 317.30°)
OKLaboklab(74.34% 0.1054 -0.1053)
OKLCHoklch(74.34% 0.149 315)
XYZxyz(50.3950, 38.3725, 84.0925)
Luminance0.3837 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8DEC #AAEC8D
analogous
#A08DEC #CF8DEC #EC8DDA
triadic
#CF8DEC #ECCF8D #8DECCF
tetradic
#CF8DEC #ECA08D #AAEC8D #8DDAEC
square
#CF8DEC #ECA08D #AAEC8D #8DDAEC
split-complementary
#CF8DEC #DAEC8D #8DECA0
monochromatic
#A324DA #B959E3 #CF8DEC #E5C1F5 #F4E5FB

Accessibility & contrast

On white

2.42
#CF8DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.67
#CF8DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8DEC
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8DEC#FFFFFF#000000##000000
##CF8DEC1.002.428.678.67
#FFFFFF2.421.0021.0021.00
#0000008.6721.001.001.00
##0000008.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA3EF
Deuteranopia (green-blind)
#8DA8E9
Tritanopia (blue-blind)
#CD9AB1
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cf8dec;
/* rgb */ color: rgb(207, 141, 236);
/* oklch */ color: oklch(74.3% 0.149 315.0);
Tailwind
colors: {
  custom: {
    50: '#dfaff2',
    500: '#cf8dec',
    950: '#000000',
  },
}
SCSS
$custom: #cf8dec;
$custom-light: #dfaff2;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8dec",
  "rgb": {
    "r": 207,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 281.684,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.74341,
    "c": 0.14899,
    "h": 315
  },
  "luminance": 0.38371
}

Semantic roles & 50–950 ramp

primary
#CF8DEC
secondary
#E1F2D9
accent
#D3124D
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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