#CD8EF5#CD8EF5

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

Color values

HEX#CD8EF5
RGBrgb(205, 142, 245)
HSLhsl(277, 84%, 76%)
HSVhsv(277, 42%, 96%)
CMYKcmyk(16.3%, 42%, 0%, 3.9%)
CIE-LABlab(68.69, 42.12, -42.49)
CIE-LCHlch(68.69, 59.83, 314.75°)
OKLaboklab(74.72% 0.1033 -0.1178)
OKLCHoklch(74.72% 0.157 311.2)
XYZxyz(51.3284, 38.9186, 91.1766)
Luminance0.3892 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8EF5 #B6F58E
analogous
#998EF5 #CD8EF5 #F58EE9
triadic
#CD8EF5 #F5CD8E #8EF5CD
tetradic
#CD8EF5 #F5998E #B6F58E #8EE9F5
square
#CD8EF5 #F5998E #B6F58E #8EE9F5
split-complementary
#CD8EF5 #E9F58E #8EF599
monochromatic
#9B1EEB #B456F0 #CD8EF5 #E6C6FA #F3E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD8EF5#FFFFFF#000000##000000
##CD8EF51.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)
#79A4F9
Deuteranopia (green-blind)
#89A9F2
Tritanopia (blue-blind)
#C99DB6
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #cd8ef5;
/* rgb */ color: rgb(205, 142, 245);
/* oklch */ color: oklch(74.7% 0.157 311.2);
Tailwind
colors: {
  custom: {
    50: '#deb0f9',
    500: '#cd8ef5',
    950: '#000000',
  },
}
SCSS
$custom: #cd8ef5;
$custom-light: #deb0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8ef5",
  "rgb": {
    "r": 205,
    "g": 142,
    "b": 245
  },
  "hsl": {
    "h": 276.699,
    "s": 83.74,
    "l": 75.882
  },
  "oklch": {
    "l": 0.74721,
    "c": 0.1567,
    "h": 311.2
  },
  "luminance": 0.38918
}

Semantic roles & 50–950 ramp

primary
#CD8EF5
secondary
#E2F4D7
accent
#E0055A
background
#FDFAFF
surface
#FBF5FF
border
#D4CFD7
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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