#CD8CFE#CD8CFE

#CD8CFE is a light, vivid violet. Relative luminance 0.389; OKLCH L 74.8% C 0.170 H 309.1°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#CD8CFE
RGBrgb(205, 140, 254)
HSLhsl(274, 98%, 77%)
HSVhsv(274, 45%, 100%)
CMYKcmyk(19.3%, 44.9%, 0%, 0.4%)
CIE-LABlab(68.67, 45.12, -47.44)
CIE-LCHlch(68.67, 65.47, 313.57°)
OKLaboklab(74.84% 0.1075 -0.1321)
OKLCHoklch(74.84% 0.17 309.1)
XYZxyz(52.4409, 38.8918, 98.4910)
Luminance0.3889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8CFE #BDFE8C
analogous
#948CFE #CD8CFE #FE8CF6
triadic
#CD8CFE #FECD8C #8CFECD
tetradic
#CD8CFE #FE948C #BDFE8C #8CF6FE
square
#CD8CFE #FE948C #BDFE8C #8CF6FE
split-complementary
#CD8CFE #F6FE8C #8CFE94
monochromatic
#9813FD #B34FFD #CD8CFE #E7C9FF #F2E1FF

Accessibility & contrast

On white

2.39
#CD8CFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.78
#CD8CFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8CFE
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8CFE#FFFFFF#000000##000000
##CD8CFE1.002.398.788.78
#FFFFFF2.391.0021.0021.00
#0000008.7821.001.001.00
##0000008.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#71A5FF
Deuteranopia (green-blind)
#82A9FB
Tritanopia (blue-blind)
#C79EB9
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8cfe;
/* rgb */ color: rgb(205, 140, 254);
/* oklch */ color: oklch(74.8% 0.170 309.1);
Tailwind
colors: {
  custom: {
    50: '#deafff',
    500: '#cd8cfe',
    950: '#000000',
  },
}
SCSS
$custom: #cd8cfe;
$custom-light: #deafff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8cfe",
  "rgb": {
    "r": 205,
    "g": 140,
    "b": 254
  },
  "hsl": {
    "h": 274.211,
    "s": 98.276,
    "l": 77.255
  },
  "oklch": {
    "l": 0.74841,
    "c": 0.17032,
    "h": 309.1
  },
  "luminance": 0.38891
}

Semantic roles & 50–950 ramp

primary
#CD8CFE
secondary
#E3F7D4
accent
#E60063
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151018
muted
#837F86

Preview Lab

Preview with #CD8CFE

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

Preview Lab → · Contrast checker → · Palette generator →

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