#CF8EF2#CF8EF2

#CF8EF2 is a light, vivid violet. Relative luminance 0.390; OKLCH L 74.8% C 0.154 H 313.0°. Best body text is #000000 at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#CF8EF2
RGBrgb(207, 142, 242)
HSLhsl(279, 79%, 75%)
HSVhsv(279, 41%, 95%)
CMYKcmyk(14.5%, 41.3%, 0%, 5.1%)
CIE-LABlab(68.77, 42.06, -40.71)
CIE-LCHlch(68.77, 58.54, 315.93°)
OKLaboklab(74.78% 0.1051 -0.1127)
OKLCHoklch(74.78% 0.154 313)
XYZxyz(51.4295, 39.0232, 88.8102)
Luminance0.3902 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF8EF2 #B1F28E
analogous
#9D8EF2 #CF8EF2 #F28EE3
triadic
#CF8EF2 #F2CF8E #8EF2CF
tetradic
#CF8EF2 #F29D8E #B1F28E #8EE3F2
square
#CF8EF2 #F29D8E #B1F28E #8EE3F2
split-complementary
#CF8EF2 #E3F28E #8EF29D
monochromatic
#A020E5 #B857EC #CF8EF2 #E6C5F8 #F3E4FC

Accessibility & contrast

On white

2.39
#CF8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.80
#CF8EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CF8EF2
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF8EF2#FFFFFF#000000##000000
##CF8EF21.002.398.808.80
#FFFFFF2.391.0021.0021.00
#0000008.8021.001.001.00
##0000008.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7BA4F6
Deuteranopia (green-blind)
#8BA9EF
Tritanopia (blue-blind)
#CC9CB5
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cf8ef2;
/* rgb */ color: rgb(207, 142, 242);
/* oklch */ color: oklch(74.8% 0.154 313.0);
Tailwind
colors: {
  custom: {
    50: '#dfb0f6',
    500: '#cf8ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cf8ef2;
$custom-light: #dfb0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cf8ef2",
  "rgb": {
    "r": 207,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 279,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74782,
    "c": 0.15407,
    "h": 313
  },
  "luminance": 0.39022
}

Semantic roles & 50–950 ramp

primary
#CF8EF2
secondary
#E1F4D7
accent
#DC0A53
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85

Preview Lab

Preview with #CF8EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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