#CC8CF2#CC8CF2

#CC8CF2 is a light, vivid violet. Relative luminance 0.380; OKLCH L 74.2% C 0.156 H 311.9°. Best body text is #000000 at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#CC8CF2
RGBrgb(204, 140, 242)
HSLhsl(278, 80%, 75%)
HSVhsv(278, 42%, 95%)
CMYKcmyk(15.7%, 42.1%, 0%, 5.1%)
CIE-LABlab(68.02, 42.27, -41.90)
CIE-LCHlch(68.02, 59.52, 315.25°)
OKLaboklab(74.15% 0.1044 -0.1161)
OKLCHoklch(74.15% 0.156 311.9)
XYZxyz(50.3042, 38.0053, 88.6729)
Luminance0.3800 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8CF2 #B2F28C
analogous
#998CF2 #CC8CF2 #F28CE5
triadic
#CC8CF2 #F2CC8C #8CF2CC
tetradic
#CC8CF2 #F2998C #B2F28C #8CE5F2
square
#CC8CF2 #F2998C #B2F28C #8CE5F2
split-complementary
#CC8CF2 #E5F28C #8CF299
monochromatic
#9B1EE6 #B455EC #CC8CF2 #E4C3F8 #F3E4FC

Accessibility & contrast

On white

2.44
#CC8CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.60
#CC8CF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8CF2
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8CF2#FFFFFF#000000##000000
##CC8CF21.002.448.608.60
#FFFFFF2.441.0021.0021.00
#0000008.6021.001.001.00
##0000008.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#77A2F6
Deuteranopia (green-blind)
#88A7EF
Tritanopia (blue-blind)
#C89BB4
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cc8cf2;
/* rgb */ color: rgb(204, 140, 242);
/* oklch */ color: oklch(74.2% 0.156 311.9);
Tailwind
colors: {
  custom: {
    50: '#ddaff6',
    500: '#cc8cf2',
    950: '#000000',
  },
}
SCSS
$custom: #cc8cf2;
$custom-light: #ddaff6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8cf2",
  "rgb": {
    "r": 204,
    "g": 140,
    "b": 242
  },
  "hsl": {
    "h": 277.647,
    "s": 79.687,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74153,
    "c": 0.15617,
    "h": 311.9
  },
  "luminance": 0.38004
}

Semantic roles & 50–950 ramp

primary
#CC8CF2
secondary
#E2F4D7
accent
#DC0A58
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8CF2

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

Preview Lab → · Contrast checker → · Palette generator →

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