#CC86F2#CC86F2

#CC86F2 is a light, vivid violet. Relative luminance 0.363; OKLCH L 73.2% C 0.166 H 312.8°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#CC86F2
RGBrgb(204, 134, 242)
HSLhsl(279, 81%, 74%)
HSVhsv(279, 45%, 95%)
CMYKcmyk(15.7%, 44.6%, 0%, 5.1%)
CIE-LABlab(66.75, 45.47, -43.90)
CIE-LCHlch(66.75, 63.21, 316.01°)
OKLaboklab(73.2% 0.1127 -0.1219)
OKLCHoklch(73.2% 0.166 312.8)
XYZxyz(49.4512, 36.2994, 88.3886)
Luminance0.3630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC86F2 #ACF286
analogous
#9686F2 #CC86F2 #F286E2
triadic
#CC86F2 #F2CC86 #86F2CC
tetradic
#CC86F2 #F29686 #ACF286 #86E2F2
square
#CC86F2 #F29686 #ACF286 #86E2F2
split-complementary
#CC86F2 #E2F286 #86F296
monochromatic
#9D19E5 #B54FEC #CC86F2 #E3BDF8 #F3E3FC

Accessibility & contrast

On white

2.54
#CC86F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#CC86F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC86F2
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC86F2#FFFFFF#000000##000000
##CC86F21.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF6
Deuteranopia (green-blind)
#82A4EF
Tritanopia (blue-blind)
#C996B1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cc86f2;
/* rgb */ color: rgb(204, 134, 242);
/* oklch */ color: oklch(73.2% 0.166 312.8);
Tailwind
colors: {
  custom: {
    50: '#ddabf7',
    500: '#cc86f2',
    950: '#000000',
  },
}
SCSS
$custom: #cc86f2;
$custom-light: #ddabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc86f2",
  "rgb": {
    "r": 204,
    "g": 134,
    "b": 242
  },
  "hsl": {
    "h": 278.889,
    "s": 80.597,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73197,
    "c": 0.16603,
    "h": 312.8
  },
  "luminance": 0.36298
}

Semantic roles & 50–950 ramp

primary
#CC86F2
secondary
#E1F4D7
accent
#DD0953
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CC86F2

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

Preview Lab → · Contrast checker → · Palette generator →

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