#CD7AF9#CD7AF9

#CD7AF9 is a light, vivid violet. Relative luminance 0.337; OKLCH L 71.8% C 0.193 H 312.7°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#CD7AF9
RGBrgb(205, 122, 249)
HSLhsl(279, 91%, 73%)
HSVhsv(279, 51%, 98%)
CMYKcmyk(17.7%, 51%, 0%, 2.4%)
CIE-LABlab(64.75, 53.47, -50.88)
CIE-LCHlch(64.75, 73.81, 316.42°)
OKLaboklab(71.85% 0.131 -0.1421)
OKLCHoklch(71.85% 0.193 312.7)
XYZxyz(49.2323, 33.7389, 93.5229)
Luminance0.3374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AF9 #A6F97A
analogous
#8E7AF9 #CD7AF9 #F97AE5
triadic
#CD7AF9 #F9CD7A #7AF9CD
tetradic
#CD7AF9 #F98E7A #A6F97A #7AE5F9
square
#CD7AF9 #F98E7A #A6F97A #7AE5F9
split-complementary
#CD7AF9 #E5F97A #7AF98E
monochromatic
#9F0BEE #B73FF6 #CD7AF9 #E3B5FC #F4E2FE

Accessibility & contrast

On white

2.71
#CD7AF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.75
#CD7AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AF9
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AF9#FFFFFF#000000##000000
##CD7AF91.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B99FD
Deuteranopia (green-blind)
#749FF6
Tritanopia (blue-blind)
#C98FAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7af9;
/* rgb */ color: rgb(205, 122, 249);
/* oklch */ color: oklch(71.8% 0.193 312.7);
Tailwind
colors: {
  custom: {
    50: '#dfa3fc',
    500: '#cd7af9',
    950: '#000000',
  },
}
SCSS
$custom: #cd7af9;
$custom-light: #dfa3fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7af9",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 279.213,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.71848,
    "c": 0.19321,
    "h": 312.7
  },
  "luminance": 0.33738
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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