#CF8CEE#CF8CEE

#CF8CEE is a light, vivid purple. Relative luminance 0.382; OKLCH L 74.3% C 0.153 H 314.5°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).

Color values

HEX#CF8CEE
RGBrgb(207, 140, 238)
HSLhsl(281, 74%, 74%)
HSVhsv(281, 41%, 93%)
CMYKcmyk(13%, 41.2%, 0%, 6.7%)
CIE-LABlab(68.16, 42.30, -39.46)
CIE-LCHlch(68.16, 57.85, 316.99°)
OKLaboklab(74.27% 0.1072 -0.1091)
OKLCHoklch(74.27% 0.153 314.5)
XYZxyz(50.5404, 38.1958, 85.5825)
Luminance0.3820 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8CEE #ABEE8C
analogous
#9E8CEE #CF8CEE #EE8CDC
triadic
#CF8CEE #EECF8C #8CEECF
tetradic
#CF8CEE #EE9E8C #ABEE8C #8CDCEE
square
#CF8CEE #EE9E8C #ABEE8C #8CDCEE
split-complementary
#CF8CEE #DCEE8C #8CEE9E
monochromatic
#A221DE #B957E6 #CF8CEE #E5C1F6 #F4E4FB

Accessibility & contrast

On white

2.43
#CF8CEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.64
#CF8CEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8CEE
8.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8CEE#FFFFFF#000000##000000
##CF8CEE1.002.438.648.64
#FFFFFF2.431.0021.0021.00
#0000008.6421.001.001.00
##0000008.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA2F2
Deuteranopia (green-blind)
#8BA8EB
Tritanopia (blue-blind)
#CD9AB2
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cf8cee;
/* rgb */ color: rgb(207, 140, 238);
/* oklch */ color: oklch(74.3% 0.153 314.5);
Tailwind
colors: {
  custom: {
    50: '#dfaff4',
    500: '#cf8cee',
    950: '#000000',
  },
}
SCSS
$custom: #cf8cee;
$custom-light: #dfaff4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8cee",
  "rgb": {
    "r": 207,
    "g": 140,
    "b": 238
  },
  "hsl": {
    "h": 281.02,
    "s": 74.242,
    "l": 74.118
  },
  "oklch": {
    "l": 0.74272,
    "c": 0.1529,
    "h": 314.5
  },
  "luminance": 0.38195
}

Semantic roles & 50–950 ramp

primary
#CF8CEE
secondary
#E1F3D8
accent
#D60F4E
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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