#CD8EFE#CD8EFE

#CD8EFE is a light, vivid violet. Relative luminance 0.395; OKLCH L 75.2% C 0.167 H 308.8°. Best body text is #000000 at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#CD8EFE
RGBrgb(205, 142, 254)
HSLhsl(274, 98%, 78%)
HSVhsv(274, 44%, 100%)
CMYKcmyk(19.3%, 44.1%, 0%, 0.4%)
CIE-LABlab(69.10, 44.05, -46.77)
CIE-LCHlch(69.10, 64.25, 313.29°)
OKLaboklab(75.16% 0.1048 -0.1302)
OKLCHoklch(75.16% 0.167 308.8)
XYZxyz(52.7358, 39.4816, 98.5893)
Luminance0.3948 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8EFE #BFFE8E
analogous
#958EFE #CD8EFE #FE8EF7
triadic
#CD8EFE #FECD8E #8EFECD
tetradic
#CD8EFE #FE958E #BFFE8E #8EF7FE
square
#CD8EFE #FE958E #BFFE8E #8EF7FE
split-complementary
#CD8EFE #F7FE8E #8EFE95
monochromatic
#9715FD #B251FD #CD8EFE #E8CBFF #F2E1FF

Accessibility & contrast

On white

2.36
#CD8EFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.90
#CD8EFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8EFE
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8EFE#FFFFFF#000000##000000
##CD8EFE1.002.368.908.90
#FFFFFF2.361.0021.0021.00
#0000008.9021.001.001.00
##0000008.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A6FF
Deuteranopia (green-blind)
#84AAFB
Tritanopia (blue-blind)
#C7A0BA
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #cd8efe;
/* rgb */ color: rgb(205, 142, 254);
/* oklch */ color: oklch(75.2% 0.167 308.8);
Tailwind
colors: {
  custom: {
    50: '#deb0ff',
    500: '#cd8efe',
    950: '#000000',
  },
}
SCSS
$custom: #cd8efe;
$custom-light: #deb0ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8efe",
  "rgb": {
    "r": 205,
    "g": 142,
    "b": 254
  },
  "hsl": {
    "h": 273.75,
    "s": 98.246,
    "l": 77.647
  },
  "oklch": {
    "l": 0.75159,
    "c": 0.16711,
    "h": 308.8
  },
  "luminance": 0.39481
}

Semantic roles & 50–950 ramp

primary
#CD8EFE
secondary
#E3F7D4
accent
#E60064
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151118
muted
#838086

Preview Lab

Preview with #CD8EFE

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

Preview Lab → · Contrast checker → · Palette generator →

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