#CD9EF2#CD9EF2

#CD9EF2 is a light, vivid violet. Relative luminance 0.438; OKLCH L 77.3% C 0.126 H 309.3°. Best body text is #000000 at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#CD9EF2
RGBrgb(205, 158, 242)
HSLhsl(274, 76%, 78%)
HSVhsv(274, 35%, 95%)
CMYKcmyk(15.3%, 34.7%, 0%, 5.1%)
CIE-LABlab(72.12, 32.80, -35.50)
CIE-LCHlch(72.12, 48.34, 312.73°)
OKLaboklab(77.27% 0.0801 -0.0979)
OKLCHoklch(77.27% 0.126 309.3)
XYZxyz(53.4278, 43.8443, 89.6354)
Luminance0.4384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD9EF2 #C3F29E
analogous
#A39EF2 #CD9EF2 #F29EED
triadic
#CD9EF2 #F2CD9E #9EF2CD
tetradic
#CD9EF2 #F2A39E #C3F29E #9EEDF2
square
#CD9EF2 #F2A39E #C3F29E #9EEDF2
split-complementary
#CD9EF2 #EDF29E #9EF2A3
monochromatic
#9532E4 #B168EB #CD9EF2 #E9D4F9 #F1E4FB

Accessibility & contrast

On white

2.15
#CD9EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.77
#CD9EF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD9EF2
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD9EF2#FFFFFF#000000##000000
##CD9EF21.002.159.779.77
#FFFFFF2.151.0021.0021.00
#0000009.7721.001.001.00
##0000009.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EAFF5
Deuteranopia (green-blind)
#98B2F0
Tritanopia (blue-blind)
#C9AABD
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #cd9ef2;
/* rgb */ color: rgb(205, 158, 242);
/* oklch */ color: oklch(77.3% 0.126 309.3);
Tailwind
colors: {
  custom: {
    50: '#ddbbf6',
    500: '#cd9ef2',
    950: '#000000',
  },
}
SCSS
$custom: #cd9ef2;
$custom-light: #ddbbf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd9ef2",
  "rgb": {
    "r": 205,
    "g": 158,
    "b": 242
  },
  "hsl": {
    "h": 273.571,
    "s": 76.364,
    "l": 78.431
  },
  "oklch": {
    "l": 0.77273,
    "c": 0.12647,
    "h": 309.3
  },
  "luminance": 0.43844
}

Semantic roles & 50–950 ramp

primary
#CD9EF2
secondary
#E4F3D8
accent
#D90D67
background
#FDFBFF
surface
#FBF6FE
border
#D4D0D6
text
#151217
muted
#838185

Preview Lab

Preview with #CD9EF2

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

Preview Lab → · Contrast checker → · Palette generator →

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