#CC8AFF#CC8AFF

#CC8AFF is a light, vivid violet. Relative luminance 0.382; OKLCH L 74.5% C 0.174 H 308.8°. Best body text is #000000 at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#CC8AFF
RGBrgb(204, 138, 255)
HSLhsl(274, 100%, 77%)
HSVhsv(274, 46%, 100%)
CMYKcmyk(20%, 45.9%, 0%, 0%)
CIE-LABlab(68.19, 46.13, -48.74)
CIE-LCHlch(68.19, 67.11, 313.42°)
OKLaboklab(74.47% 0.1092 -0.1359)
OKLCHoklch(74.47% 0.174 308.8)
XYZxyz(52.0369, 38.2350, 99.2271)
Luminance0.3823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC8AFF #BDFF8A
analogous
#928AFF #CC8AFF #FF8AF8
triadic
#CC8AFF #FFCC8A #8AFFCC
tetradic
#CC8AFF #FF928A #BDFF8A #8AF8FF
square
#CC8AFF #FF928A #BDFF8A #8AF8FF
split-complementary
#CC8AFF #F8FF8A #8AFF92
monochromatic
#9710FF #B14DFF #CC8AFF #E7C7FF #F2E0FF

Accessibility & contrast

On white

2.43
#CC8AFF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.65
#CC8AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC8AFF
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC8AFF#FFFFFF#000000##000000
##CC8AFF1.002.438.658.65
#FFFFFF2.431.0021.0021.00
#0000008.6521.001.001.00
##0000008.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA3FF
Deuteranopia (green-blind)
#7FA7FC
Tritanopia (blue-blind)
#C59DB9
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cc8aff;
/* rgb */ color: rgb(204, 138, 255);
/* oklch */ color: oklch(74.5% 0.174 308.8);
Tailwind
colors: {
  custom: {
    50: '#deadff',
    500: '#cc8aff',
    950: '#000000',
  },
}
SCSS
$custom: #cc8aff;
$custom-light: #deadff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc8aff",
  "rgb": {
    "r": 204,
    "g": 138,
    "b": 255
  },
  "hsl": {
    "h": 273.846,
    "s": 100,
    "l": 77.059
  },
  "oklch": {
    "l": 0.74474,
    "c": 0.17434,
    "h": 308.8
  },
  "luminance": 0.38234
}

Semantic roles & 50–950 ramp

primary
#CC8AFF
secondary
#E3F7D4
accent
#E60064
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CC8AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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