#CC8BF2#CC8BF2

#CC8BF2 is a light, vivid violet. Relative luminance 0.377; OKLCH L 74.0% C 0.158 H 312.1°. Best body text is #000000 at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#CC8BF2
RGBrgb(204, 139, 242)
HSLhsl(278, 80%, 75%)
HSVhsv(278, 43%, 95%)
CMYKcmyk(15.7%, 42.6%, 0%, 5.1%)
CIE-LABlab(67.81, 42.81, -42.24)
CIE-LCHlch(67.81, 60.14, 315.38°)
OKLaboklab(73.99% 0.1058 -0.1171)
OKLCHoklch(73.99% 0.158 312.1)
XYZxyz(50.1587, 37.7144, 88.6245)
Luminance0.3771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8BF2 #B1F28B
analogous
#998BF2 #CC8BF2 #F28BE5
triadic
#CC8BF2 #F2CC8B #8BF2CC
tetradic
#CC8BF2 #F2998B #B1F28B #8BE5F2
square
#CC8BF2 #F2998B #B1F28B #8BE5F2
split-complementary
#CC8BF2 #E5F28B #8BF299
monochromatic
#9C1DE6 #B454EC #CC8BF2 #E4C2F8 #F3E3FC

Accessibility & contrast

On white

2.46
#CC8BF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.54
#CC8BF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8BF2
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8BF2#FFFFFF#000000##000000
##CC8BF21.002.468.548.54
#FFFFFF2.461.0021.0021.00
#0000008.5421.001.001.00
##0000008.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A2F6
Deuteranopia (green-blind)
#87A7EF
Tritanopia (blue-blind)
#C89AB3
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cc8bf2;
/* rgb */ color: rgb(204, 139, 242);
/* oklch */ color: oklch(74.0% 0.158 312.1);
Tailwind
colors: {
  custom: {
    50: '#ddaef6',
    500: '#cc8bf2',
    950: '#000000',
  },
}
SCSS
$custom: #cc8bf2;
$custom-light: #ddaef6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8bf2",
  "rgb": {
    "r": 204,
    "g": 139,
    "b": 242
  },
  "hsl": {
    "h": 277.864,
    "s": 79.845,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73992,
    "c": 0.15782,
    "h": 312.1
  },
  "luminance": 0.37713
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC8BF2

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

Preview Lab → · Contrast checker → · Palette generator →

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