#CD7DF8#CD7DF8

#CD7DF8 is a light, vivid violet. Relative luminance 0.344; OKLCH L 72.2% C 0.187 H 312.6°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#CD7DF8
RGBrgb(205, 125, 248)
HSLhsl(279, 90%, 73%)
HSVhsv(279, 50%, 97%)
CMYKcmyk(17.3%, 49.6%, 0%, 2.7%)
CIE-LABlab(65.30, 51.72, -49.47)
CIE-LCHlch(65.30, 71.57, 316.27°)
OKLaboklab(72.23% 0.1269 -0.138)
OKLCHoklch(72.23% 0.187 312.6)
XYZxyz(49.4508, 34.4248, 92.8284)
Luminance0.3442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DF8 #A8F87D
analogous
#8F7DF8 #CD7DF8 #F87DE6
triadic
#CD7DF8 #F8CD7D #7DF8CD
tetradic
#CD7DF8 #F88F7D #A8F87D #7DE6F8
square
#CD7DF8 #F88F7D #A8F87D #7DE6F8
split-complementary
#CD7DF8 #E6F87D #7DF88F
monochromatic
#9F0DEE #B743F5 #CD7DF8 #E3B7FB #F4E2FD

Accessibility & contrast

On white

2.66
#CD7DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.88
#CD7DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DF8
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DF8#FFFFFF#000000##000000
##CD7DF81.002.667.887.88
#FFFFFF2.661.0021.0021.00
#0000007.8821.001.001.00
##0000007.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#609AFC
Deuteranopia (green-blind)
#78A0F5
Tritanopia (blue-blind)
#C991AF
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7df8;
/* rgb */ color: rgb(205, 125, 248);
/* oklch */ color: oklch(72.2% 0.187 312.6);
Tailwind
colors: {
  custom: {
    50: '#dea5fb',
    500: '#cd7df8',
    950: '#000000',
  },
}
SCSS
$custom: #cd7df8;
$custom-light: #dea5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7df8",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 279.024,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.72234,
    "c": 0.18746,
    "h": 312.6
  },
  "luminance": 0.34424
}

Semantic roles & 50–950 ramp

primary
#CD7DF8
secondary
#E1F6D5
accent
#E60050
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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