#CC8EFA#CC8EFA

#CC8EFA is a light, vivid violet. Relative luminance 0.391; OKLCH L 74.9% C 0.162 H 309.4°. Best body text is #000000 at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#CC8EFA
RGBrgb(204, 142, 250)
HSLhsl(274, 92%, 77%)
HSVhsv(274, 43%, 98%)
CMYKcmyk(18.4%, 43.2%, 0%, 2%)
CIE-LABlab(68.81, 42.91, -45.04)
CIE-LCHlch(68.81, 62.21, 313.61°)
OKLaboklab(74.86% 0.103 -0.1252)
OKLCHoklch(74.86% 0.162 309.4)
XYZxyz(51.8269, 39.0862, 95.2381)
Luminance0.3908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8EFA #BCFA8E
analogous
#968EFA #CC8EFA #FA8EF2
triadic
#CC8EFA #FACC8E #8EFACC
tetradic
#CC8EFA #FA968E #BCFA8E #8EF2FA
square
#CC8EFA #FA968E #BCFA8E #8EF2FA
split-complementary
#CC8EFA #F2FA8E #8EFA96
monochromatic
#9719F5 #B253F7 #CC8EFA #E6C9FD #F2E2FE

Accessibility & contrast

On white

2.38
#CC8EFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.82
#CC8EFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8EFA
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8EFA#FFFFFF#000000##000000
##CC8EFA1.002.388.828.82
#FFFFFF2.381.0021.0021.00
#0000008.8221.001.001.00
##0000008.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A5FE
Deuteranopia (green-blind)
#86A9F7
Tritanopia (blue-blind)
#C69FB8
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cc8efa;
/* rgb */ color: rgb(204, 142, 250);
/* oklch */ color: oklch(74.9% 0.162 309.4);
Tailwind
colors: {
  custom: {
    50: '#ddb0fc',
    500: '#cc8efa',
    950: '#000000',
  },
}
SCSS
$custom: #cc8efa;
$custom-light: #ddb0fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8efa",
  "rgb": {
    "r": 204,
    "g": 142,
    "b": 250
  },
  "hsl": {
    "h": 274.444,
    "s": 91.525,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74863,
    "c": 0.16211,
    "h": 309.4
  },
  "luminance": 0.39085
}

Semantic roles & 50–950 ramp

primary
#CC8EFA
secondary
#E3F6D5
accent
#E60062
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC8EFA

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

Preview Lab → · Contrast checker → · Palette generator →

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