#CD7DF9#CD7DF9

#CD7DF9 is a light, vivid violet. Relative luminance 0.345; OKLCH L 72.3% C 0.189 H 312.3°. Best body text is #000000 at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#CD7DF9
RGBrgb(205, 125, 249)
HSLhsl(279, 91%, 73%)
HSVhsv(279, 50%, 98%)
CMYKcmyk(17.7%, 49.8%, 0%, 2.4%)
CIE-LABlab(65.35, 51.93, -49.95)
CIE-LCHlch(65.35, 72.05, 316.12°)
OKLaboklab(72.29% 0.127 -0.1393)
OKLCHoklch(72.29% 0.189 312.3)
XYZxyz(49.6064, 34.4870, 93.6476)
Luminance0.3449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7DF9 #A9F97D
analogous
#8F7DF9 #CD7DF9 #F97DE7
triadic
#CD7DF9 #F9CD7D #7DF9CD
tetradic
#CD7DF9 #F98F7D #A9F97D #7DE7F9
square
#CD7DF9 #F98F7D #A9F97D #7DE7F9
split-complementary
#CD7DF9 #E7F97D #7DF98F
monochromatic
#9F0BF0 #B742F6 #CD7DF9 #E3B7FC #F4E2FE

Accessibility & contrast

On white

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

On black

7.90
#CD7DF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7DF9
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7DF9#FFFFFF#000000##000000
##CD7DF91.002.667.907.90
#FFFFFF2.661.0021.0021.00
#0000007.9021.001.001.00
##0000007.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9AFD
Deuteranopia (green-blind)
#77A0F6
Tritanopia (blue-blind)
#C991B0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cd7df9;
/* rgb */ color: rgb(205, 125, 249);
/* oklch */ color: oklch(72.3% 0.189 312.3);
Tailwind
colors: {
  custom: {
    50: '#dfa5fc',
    500: '#cd7df9',
    950: '#000000',
  },
}
SCSS
$custom: #cd7df9;
$custom-light: #dfa5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7df9",
  "rgb": {
    "r": 205,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 278.71,
    "s": 91.176,
    "l": 73.333
  },
  "oklch": {
    "l": 0.72287,
    "c": 0.18854,
    "h": 312.3
  },
  "luminance": 0.34486
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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