#CD7EEB#CD7EEB

#CD7EEB is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.7% C 0.172 H 316.1°. Best body text is #000000 at 7.78:1 contrast (WCAG AA passes).

Color values

HEX#CD7EEB
RGBrgb(205, 126, 235)
HSLhsl(283, 73%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(12.8%, 46.4%, 0%, 7.8%)
CIE-LABlab(64.88, 48.51, -42.96)
CIE-LCHlch(64.88, 64.80, 318.47°)
OKLaboklab(71.73% 0.1239 -0.1191)
OKLCHoklch(71.73% 0.172 316.1)
XYZxyz(47.6308, 33.9004, 82.6155)
Luminance0.3390 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7EEB #9CEB7E
analogous
#967EEB #CD7EEB #EB7ED2
triadic
#CD7EEB #EBCD7E #7EEBCD
tetradic
#CD7EEB #EB967E #9CEB7E #7ED2EB
square
#CD7EEB #EB967E #9CEB7E #7ED2EB
split-complementary
#CD7EEB #D2EB7E #7EEB96
monochromatic
#9F20CF #B849E3 #CD7EEB #E2B3F3 #F5E5FB

Accessibility & contrast

On white

2.70
#CD7EEB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.78
#CD7EEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7EEB
7.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7EEB#FFFFFF#000000##000000
##CD7EEB1.002.707.787.78
#FFFFFF2.701.0021.0021.00
#0000007.7821.001.001.00
##0000007.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6999EF
Deuteranopia (green-blind)
#80A0E8
Tritanopia (blue-blind)
#CC8EAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7eeb;
/* rgb */ color: rgb(205, 126, 235);
/* oklch */ color: oklch(71.7% 0.172 316.1);
Tailwind
colors: {
  custom: {
    50: '#dea5f2',
    500: '#cd7eeb',
    950: '#000000',
  },
}
SCSS
$custom: #cd7eeb;
$custom-light: #dea5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7eeb",
  "rgb": {
    "r": 205,
    "g": 126,
    "b": 235
  },
  "hsl": {
    "h": 283.486,
    "s": 73.154,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71725,
    "c": 0.17187,
    "h": 316.1
  },
  "luminance": 0.33899
}

Semantic roles & 50–950 ramp

primary
#CD7EEB
secondary
#DCF1D4
accent
#D51046
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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