#CC6AFB#CC6AFB

#CC6AFB is a light, highly saturated purple. Relative luminance 0.301; OKLCH L 69.7% C 0.219 H 313.3°. Best body text is #000000 at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#CC6AFB
RGBrgb(204, 106, 251)
HSLhsl(281, 95%, 70%)
HSVhsv(281, 58%, 98%)
CMYKcmyk(18.7%, 57.8%, 0%, 1.6%)
CIE-LABlab(61.75, 61.56, -56.76)
CIE-LCHlch(61.75, 83.73, 317.32°)
OKLaboklab(69.65% 0.1502 -0.1592)
OKLCHoklch(69.65% 0.219 313.3)
XYZxyz(47.4655, 30.1118, 94.5599)
Luminance0.3011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC6AFB #99FB6A
analogous
#846AFB #CC6AFB #FB6AE1
triadic
#CC6AFB #FBCC6A #6AFBCC
tetradic
#CC6AFB #FB846A #99FB6A #6AE1FB
square
#CC6AFB #FB846A #99FB6A #6AE1FB
split-complementary
#CC6AFB #E1FB6A #6AFB84
monochromatic
#9C06E4 #B82EF9 #CC6AFB #E0A6FD #F5E1FE

Accessibility & contrast

On white

2.99
#CC6AFB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.02
#CC6AFB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC6AFB
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC6AFB#FFFFFF#000000##000000
##CC6AFB1.002.997.027.02
#FFFFFF2.991.0021.0021.00
#0000007.0221.001.001.00
##0000007.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D90FF
Deuteranopia (green-blind)
#6398F7
Tritanopia (blue-blind)
#C884A9
Achromatopsia (no color)
#959595

Design tokens & code

CSS
--color: #cc6afb;
/* rgb */ color: rgb(204, 106, 251);
/* oklch */ color: oklch(69.7% 0.219 313.3);
Tailwind
colors: {
  custom: {
    50: '#df99fd',
    500: '#cc6afb',
    950: '#000000',
  },
}
SCSS
$custom: #cc6afb;
$custom-light: #df99fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc6afb",
  "rgb": {
    "r": 204,
    "g": 106,
    "b": 251
  },
  "hsl": {
    "h": 280.552,
    "s": 94.771,
    "l": 70
  },
  "oklch": {
    "l": 0.6965,
    "c": 0.2188,
    "h": 313.3
  },
  "luminance": 0.3011
}

Semantic roles & 50–950 ramp

primary
#CC6AFB
secondary
#D9F5CC
accent
#E6004A
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160E18
muted
#847E86

Preview Lab

Preview with #CC6AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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