#CD8EF4#CD8EF4

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

Color values

HEX#CD8EF4
RGBrgb(205, 142, 244)
HSLhsl(277, 82%, 76%)
HSVhsv(277, 42%, 96%)
CMYKcmyk(16%, 41.8%, 0%, 4.3%)
CIE-LABlab(68.65, 41.91, -42.01)
CIE-LCHlch(68.65, 59.34, 314.93°)
OKLaboklab(74.67% 0.1031 -0.1165)
OKLCHoklch(74.67% 0.156 311.5)
XYZxyz(51.1761, 38.8577, 90.3748)
Luminance0.3886 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8EF4 #B5F48E
analogous
#9A8EF4 #CD8EF4 #F48EE8
triadic
#CD8EF4 #F4CD8E #8EF4CD
tetradic
#CD8EF4 #F49A8E #B5F48E #8EE8F4
square
#CD8EF4 #F49A8E #B5F48E #8EE8F4
split-complementary
#CD8EF4 #E8F48E #8EF49A
monochromatic
#9C1EE9 #B456EF #CD8EF4 #E6C6F9 #F3E3FC

Accessibility & contrast

On white

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

On black

8.77
#CD8EF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8EF4
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8EF4#FFFFFF#000000##000000
##CD8EF41.002.398.778.77
#FFFFFF2.391.0021.0021.00
#0000008.7721.001.001.00
##0000008.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A4F8
Deuteranopia (green-blind)
#89A9F1
Tritanopia (blue-blind)
#C99DB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8ef4;
/* rgb */ color: rgb(205, 142, 244);
/* oklch */ color: oklch(74.7% 0.156 311.5);
Tailwind
colors: {
  custom: {
    50: '#deb0f8',
    500: '#cd8ef4',
    950: '#000000',
  },
}
SCSS
$custom: #cd8ef4;
$custom-light: #deb0f8;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8ef4",
  "rgb": {
    "r": 205,
    "g": 142,
    "b": 244
  },
  "hsl": {
    "h": 277.059,
    "s": 82.258,
    "l": 75.686
  },
  "oklch": {
    "l": 0.74674,
    "c": 0.15555,
    "h": 311.5
  },
  "luminance": 0.38857
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD8EF4

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

Preview Lab → · Contrast checker → · Palette generator →

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