#CC8FF2#CC8FF2

#CC8FF2 is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.6% C 0.151 H 311.5°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#CC8FF2
RGBrgb(204, 143, 242)
HSLhsl(277, 79%, 75%)
HSVhsv(277, 41%, 95%)
CMYKcmyk(15.7%, 40.9%, 0%, 5.1%)
CIE-LABlab(68.67, 40.66, -40.88)
CIE-LCHlch(68.67, 57.66, 314.84°)
OKLaboklab(74.64% 0.1002 -0.1132)
OKLCHoklch(74.64% 0.151 311.5)
XYZxyz(50.7485, 38.8940, 88.8211)
Luminance0.3889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8FF2 #B5F28F
analogous
#9A8FF2 #CC8FF2 #F28FE6
triadic
#CC8FF2 #F2CC8F #8FF2CC
tetradic
#CC8FF2 #F29A8F #B5F28F #8FE6F2
square
#CC8FF2 #F29A8F #B5F28F #8FE6F2
split-complementary
#CC8FF2 #E6F28F #8FF29A
monochromatic
#9A21E5 #B358EC #CC8FF2 #E5C6F8 #F3E4FC

Accessibility & contrast

On white

2.39
#CC8FF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#CC8FF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8FF2
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8FF2#FFFFFF#000000##000000
##CC8FF21.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc8ff2;
/* rgb */ color: rgb(204, 143, 242);
/* oklch */ color: oklch(74.6% 0.151 311.5);
Tailwind
colors: {
  custom: {
    50: '#ddb1f6',
    500: '#cc8ff2',
    950: '#000000',
  },
}
SCSS
$custom: #cc8ff2;
$custom-light: #ddb1f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8ff2",
  "rgb": {
    "r": 204,
    "g": 143,
    "b": 242
  },
  "hsl": {
    "h": 276.97,
    "s": 79.2,
    "l": 75.49
  },
  "oklch": {
    "l": 0.74641,
    "c": 0.15119,
    "h": 311.5
  },
  "luminance": 0.38893
}

Semantic roles & 50–950 ramp

primary
#CC8FF2
secondary
#E2F4D7
accent
#DB0A5A
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151117
muted
#838085

Preview Lab

Preview with #CC8FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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