#CF8CEF#CF8CEF

#CF8CEF is a light, vivid purple. Relative luminance 0.383; OKLCH L 74.3% C 0.154 H 314.2°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#CF8CEF
RGBrgb(207, 140, 239)
HSLhsl(281, 76%, 74%)
HSVhsv(281, 41%, 94%)
CMYKcmyk(13.4%, 41.4%, 0%, 6.3%)
CIE-LABlab(68.21, 42.50, -39.94)
CIE-LCHlch(68.21, 58.33, 316.78°)
OKLaboklab(74.32% 0.1073 -0.1104)
OKLCHoklch(74.32% 0.154 314.2)
XYZxyz(50.6877, 38.2547, 86.3584)
Luminance0.3825 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8CEF #ACEF8C
analogous
#9E8CEF #CF8CEF #EF8CDE
triadic
#CF8CEF #EFCF8C #8CEFCF
tetradic
#CF8CEF #EF9E8C #ACEF8C #8CDEEF
square
#CF8CEF #EF9E8C #ACEF8C #8CDEEF
split-complementary
#CF8CEF #DEEF8C #8CEF9E
monochromatic
#A221E0 #B956E8 #CF8CEF #E5C2F6 #F4E4FB

Accessibility & contrast

On white

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

On black

8.65
#CF8CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8CEF
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8CEF#FFFFFF#000000##000000
##CF8CEF1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cf8cef;
/* rgb */ color: rgb(207, 140, 239);
/* oklch */ color: oklch(74.3% 0.154 314.2);
Tailwind
colors: {
  custom: {
    50: '#dfaff4',
    500: '#cf8cef',
    950: '#000000',
  },
}
SCSS
$custom: #cf8cef;
$custom-light: #dfaff4;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8cef",
  "rgb": {
    "r": 207,
    "g": 140,
    "b": 239
  },
  "hsl": {
    "h": 280.606,
    "s": 75.573,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74319,
    "c": 0.15402,
    "h": 314.2
  },
  "luminance": 0.38254
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CF8CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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