#CC8EF2#CC8EF2

#CC8EF2 is a light, vivid violet. Relative luminance 0.386; OKLCH L 74.5% C 0.153 H 311.7°. Best body text is #000000 at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#CC8EF2
RGBrgb(204, 142, 242)
HSLhsl(277, 79%, 75%)
HSVhsv(277, 41%, 95%)
CMYKcmyk(15.7%, 41.3%, 0%, 5.1%)
CIE-LABlab(68.46, 41.19, -41.22)
CIE-LCHlch(68.46, 58.28, 314.98°)
OKLaboklab(74.48% 0.1016 -0.1142)
OKLCHoklch(74.48% 0.153 311.7)
XYZxyz(50.5991, 38.5951, 88.7712)
Luminance0.3859 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8EF2 #B4F28E
analogous
#9A8EF2 #CC8EF2 #F28EE6
triadic
#CC8EF2 #F2CC8E #8EF2CC
tetradic
#CC8EF2 #F29A8E #B4F28E #8EE6F2
square
#CC8EF2 #F29A8E #B4F28E #8EE6F2
split-complementary
#CC8EF2 #E6F28E #8EF29A
monochromatic
#9A20E5 #B357EC #CC8EF2 #E5C5F8 #F3E4FC

Accessibility & contrast

On white

2.41
#CC8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.72
#CC8EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8EF2
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8EF2#FFFFFF#000000##000000
##CC8EF21.002.418.728.72
#FFFFFF2.411.0021.0021.00
#0000008.7221.001.001.00
##0000008.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#8AA8EF
Tritanopia (blue-blind)
#C89DB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cc8ef2;
/* rgb */ color: rgb(204, 142, 242);
/* oklch */ color: oklch(74.5% 0.153 311.7);
Tailwind
colors: {
  custom: {
    50: '#ddb0f6',
    500: '#cc8ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cc8ef2;
$custom-light: #ddb0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8ef2",
  "rgb": {
    "r": 204,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 277.2,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74478,
    "c": 0.15286,
    "h": 311.7
  },
  "luminance": 0.38594
}

Semantic roles & 50–950 ramp

primary
#CC8EF2
secondary
#E2F4D7
accent
#DC0A5A
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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