#CD8CEF#CD8CEF

#CD8CEF is a light, vivid violet. Relative luminance 0.380; OKLCH L 74.1% C 0.153 H 313.3°. Best body text is #000000 at 8.59:1 contrast (WCAG AA passes).

Color values

HEX#CD8CEF
RGBrgb(205, 140, 239)
HSLhsl(279, 76%, 74%)
HSVhsv(279, 41%, 94%)
CMYKcmyk(14.2%, 41.4%, 0%, 6.3%)
CIE-LABlab(68.00, 41.93, -40.29)
CIE-LCHlch(68.00, 58.15, 316.14°)
OKLaboklab(74.11% 0.105 -0.1115)
OKLCHoklch(74.11% 0.153 313.3)
XYZxyz(50.1323, 37.9683, 86.3323)
Luminance0.3797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8CEF #AEEF8C
analogous
#9C8CEF #CD8CEF #EF8CE0
triadic
#CD8CEF #EFCD8C #8CEFCD
tetradic
#CD8CEF #EF9C8C #AEEF8C #8CE0EF
square
#CD8CEF #EF9C8C #AEEF8C #8CE0EF
split-complementary
#CD8CEF #E0EF8C #8CEF9C
monochromatic
#9E21E0 #B656E8 #CD8CEF #E4C2F6 #F3E4FB

Accessibility & contrast

On white

2.44
#CD8CEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.59
#CD8CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8CEF
8.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8CEF#FFFFFF#000000##000000
##CD8CEF1.002.448.598.59
#FFFFFF2.441.0021.0021.00
#0000008.5921.001.001.00
##0000008.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#79A2F3
Deuteranopia (green-blind)
#8AA7EC
Tritanopia (blue-blind)
#CA9AB2
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #cd8cef;
/* rgb */ color: rgb(205, 140, 239);
/* oklch */ color: oklch(74.1% 0.153 313.3);
Tailwind
colors: {
  custom: {
    50: '#deaff4',
    500: '#cd8cef',
    950: '#000000',
  },
}
SCSS
$custom: #cd8cef;
$custom-light: #deaff4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8cef",
  "rgb": {
    "r": 205,
    "g": 140,
    "b": 239
  },
  "hsl": {
    "h": 279.394,
    "s": 75.573,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74113,
    "c": 0.15316,
    "h": 313.3
  },
  "luminance": 0.37967
}

Semantic roles & 50–950 ramp

primary
#CD8CEF
secondary
#E1F3D8
accent
#D80E53
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8CEF

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

Preview Lab → · Contrast checker → · Palette generator →

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