#CD8EF2#CD8EF2

#CD8EF2 is a light, vivid violet. Relative luminance 0.387; OKLCH L 74.6% C 0.153 H 312.1°. Best body text is #000000 at 8.75:1 contrast (WCAG AA passes).

Color values

HEX#CD8EF2
RGBrgb(205, 142, 242)
HSLhsl(278, 79%, 75%)
HSVhsv(278, 41%, 95%)
CMYKcmyk(15.3%, 41.3%, 0%, 5.1%)
CIE-LABlab(68.56, 41.48, -41.05)
CIE-LCHlch(68.56, 58.36, 315.30°)
OKLaboklab(74.58% 0.1028 -0.1137)
OKLCHoklch(74.58% 0.153 312.1)
XYZxyz(50.8741, 38.7369, 88.7841)
Luminance0.3874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD8EF2 #B3F28E
analogous
#9B8EF2 #CD8EF2 #F28EE5
triadic
#CD8EF2 #F2CD8E #8EF2CD
tetradic
#CD8EF2 #F29B8E #B3F28E #8EE5F2
square
#CD8EF2 #F29B8E #B3F28E #8EE5F2
split-complementary
#CD8EF2 #E5F28E #8EF29B
monochromatic
#9C20E5 #B557EC #CD8EF2 #E5C5F8 #F3E4FC

Accessibility & contrast

On white

2.40
#CD8EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.75
#CD8EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD8EF2
8.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD8EF2#FFFFFF#000000##000000
##CD8EF21.002.408.758.75
#FFFFFF2.401.0021.0021.00
#0000008.7521.001.001.00
##0000008.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7AA4F6
Deuteranopia (green-blind)
#8AA9EF
Tritanopia (blue-blind)
#C99DB5
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #cd8ef2;
/* rgb */ color: rgb(205, 142, 242);
/* oklch */ color: oklch(74.6% 0.153 312.1);
Tailwind
colors: {
  custom: {
    50: '#deb0f6',
    500: '#cd8ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cd8ef2;
$custom-light: #deb0f6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd8ef2",
  "rgb": {
    "r": 205,
    "g": 142,
    "b": 242
  },
  "hsl": {
    "h": 277.8,
    "s": 79.365,
    "l": 75.294
  },
  "oklch": {
    "l": 0.74579,
    "c": 0.15326,
    "h": 312.1
  },
  "luminance": 0.38736
}

Semantic roles & 50–950 ramp

primary
#CD8EF2
secondary
#E2F4D7
accent
#DC0A57
background
#FDFAFF
surface
#FBF5FE
border
#D4CFD6
text
#151017
muted
#837F85

Preview Lab

Preview with #CD8EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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