#CD8DFC#CD8DFC

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

Color values

HEX#CD8DFC
RGBrgb(205, 141, 252)
HSLhsl(275, 95%, 77%)
HSVhsv(275, 44%, 99%)
CMYKcmyk(18.7%, 44%, 0%, 1.2%)
CIE-LABlab(68.79, 44.16, -46.16)
CIE-LCHlch(68.79, 63.88, 313.73°)
OKLaboklab(74.9% 0.1058 -0.1284)
OKLCHoklch(74.9% 0.166 309.5)
XYZxyz(52.2691, 39.0579, 96.8620)
Luminance0.3906 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8DFC #BCFC8D
analogous
#968DFC #CD8DFC #FC8DF3
triadic
#CD8DFC #FCCD8D #8DFCCD
tetradic
#CD8DFC #FC968D #BCFC8D #8DF3FC
square
#CD8DFC #FC968D #BCFC8D #8DF3FC
split-complementary
#CD8DFC #F3FC8D #8DFC96
monochromatic
#9916F9 #B351FA #CD8DFC #E7C9FE #F2E1FE

Accessibility & contrast

On white

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

On black

8.81
#CD8DFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8DFC
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8DFC#FFFFFF#000000##000000
##CD8DFC1.002.388.818.81
#FFFFFF2.381.0021.0021.00
#0000008.8121.001.001.00
##0000008.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A5FF
Deuteranopia (green-blind)
#84A9F9
Tritanopia (blue-blind)
#C79EB9
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cd8dfc;
/* rgb */ color: rgb(205, 141, 252);
/* oklch */ color: oklch(74.9% 0.166 309.5);
Tailwind
colors: {
  custom: {
    50: '#deaffe',
    500: '#cd8dfc',
    950: '#000000',
  },
}
SCSS
$custom: #cd8dfc;
$custom-light: #deaffe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8dfc",
  "rgb": {
    "r": 205,
    "g": 141,
    "b": 252
  },
  "hsl": {
    "h": 274.595,
    "s": 94.872,
    "l": 77.059
  },
  "oklch": {
    "l": 0.749,
    "c": 0.16641,
    "h": 309.5
  },
  "luminance": 0.39057
}

Semantic roles & 50–950 ramp

primary
#CD8DFC
secondary
#E3F6D5
accent
#E60061
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD8DFC

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

Preview Lab → · Contrast checker → · Palette generator →

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