#CD8AFE#CD8AFE

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

Color values

HEX#CD8AFE
RGBrgb(205, 138, 254)
HSLhsl(275, 98%, 77%)
HSVhsv(275, 46%, 100%)
CMYKcmyk(19.3%, 45.7%, 0%, 0.4%)
CIE-LABlab(68.25, 46.19, -48.10)
CIE-LCHlch(68.25, 66.69, 313.84°)
OKLaboklab(74.52% 0.1102 -0.134)
OKLCHoklch(74.52% 0.174 309.4)
XYZxyz(52.1514, 38.3126, 98.3945)
Luminance0.3831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8AFE #BBFE8A
analogous
#938AFE #CD8AFE #FE8AF5
triadic
#CD8AFE #FECD8A #8AFECD
tetradic
#CD8AFE #FE938A #BBFE8A #8AF5FE
square
#CD8AFE #FE938A #BBFE8A #8AF5FE
split-complementary
#CD8AFE #F5FE8A #8AFE93
monochromatic
#9911FD #B34DFD #CD8AFE #E7C7FF #F2E1FF

Accessibility & contrast

On white

2.42
#CD8AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.66
#CD8AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8AFE
8.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8AFE#FFFFFF#000000##000000
##CD8AFE1.002.428.668.66
#FFFFFF2.421.0021.0021.00
#0000008.6621.001.001.00
##0000008.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA3FF
Deuteranopia (green-blind)
#80A7FB
Tritanopia (blue-blind)
#C79DB8
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cd8afe;
/* rgb */ color: rgb(205, 138, 254);
/* oklch */ color: oklch(74.5% 0.174 309.4);
Tailwind
colors: {
  custom: {
    50: '#deadff',
    500: '#cd8afe',
    950: '#000000',
  },
}
SCSS
$custom: #cd8afe;
$custom-light: #deadff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8afe",
  "rgb": {
    "r": 205,
    "g": 138,
    "b": 254
  },
  "hsl": {
    "h": 274.655,
    "s": 98.305,
    "l": 76.863
  },
  "oklch": {
    "l": 0.74525,
    "c": 0.17353,
    "h": 309.4
  },
  "luminance": 0.38312
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD8AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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