#CC8FEF#CC8FEF

#CC8FEF is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.5% C 0.148 H 312.4°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).

Color values

HEX#CC8FEF
RGBrgb(204, 143, 239)
HSLhsl(278, 75%, 75%)
HSVhsv(278, 40%, 94%)
CMYKcmyk(14.6%, 40.2%, 0%, 6.3%)
CIE-LABlab(68.54, 40.02, -39.44)
CIE-LCHlch(68.54, 56.19, 315.42°)
OKLaboklab(74.5% 0.0996 -0.1091)
OKLCHoklch(74.5% 0.148 312.4)
XYZxyz(50.3016, 38.7152, 86.4676)
Luminance0.3871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8FEF #B2EF8F
analogous
#9C8FEF #CC8FEF #EF8FE2
triadic
#CC8FEF #EFCC8F #8FEFCC
tetradic
#CC8FEF #EF9C8F #B2EF8F #8FE2EF
square
#CC8FEF #EF9C8F #B2EF8F #8FE2EF
split-complementary
#CC8FEF #E2EF8F #8FEF9C
monochromatic
#9B24E0 #B459E7 #CC8FEF #E4C5F7 #F3E4FB

Accessibility & contrast

On white

2.40
#CC8FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.74
#CC8FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8FEF
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8FEF#FFFFFF#000000##000000
##CC8FEF1.002.408.748.74
#FFFFFF2.401.0021.0021.00
#0000008.7421.001.001.00
##0000008.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7DA4F3
Deuteranopia (green-blind)
#8CA9EC
Tritanopia (blue-blind)
#C99DB4
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cc8fef;
/* rgb */ color: rgb(204, 143, 239);
/* oklch */ color: oklch(74.5% 0.148 312.4);
Tailwind
colors: {
  custom: {
    50: '#ddb1f4',
    500: '#cc8fef',
    950: '#000000',
  },
}
SCSS
$custom: #cc8fef;
$custom-light: #ddb1f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8fef",
  "rgb": {
    "r": 204,
    "g": 143,
    "b": 239
  },
  "hsl": {
    "h": 278.125,
    "s": 75,
    "l": 74.902
  },
  "oklch": {
    "l": 0.74501,
    "c": 0.14773,
    "h": 312.4
  },
  "luminance": 0.38714
}

Semantic roles & 50–950 ramp

primary
#CC8FEF
secondary
#E2F3D8
accent
#D70E58
background
#FDFAFE
surface
#FBF5FD
border
#D4CFD5
text
#151117
muted
#838085

Preview Lab

Preview with #CC8FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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