#CD7AF8#CD7AF8

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

Color values

HEX#CD7AF8
RGBrgb(205, 122, 248)
HSLhsl(280, 90%, 73%)
HSVhsv(280, 51%, 97%)
CMYKcmyk(17.3%, 50.8%, 0%, 2.7%)
CIE-LABlab(64.71, 53.26, -50.41)
CIE-LCHlch(64.71, 73.33, 316.57°)
OKLaboklab(71.8% 0.1309 -0.1407)
OKLCHoklch(71.8% 0.192 312.9)
XYZxyz(49.0768, 33.6767, 92.7037)
Luminance0.3368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AF8 #A5F87A
analogous
#8E7AF8 #CD7AF8 #F87AE4
triadic
#CD7AF8 #F8CD7A #7AF8CD
tetradic
#CD7AF8 #F88E7A #A5F87A #7AE4F8
square
#CD7AF8 #F88E7A #A5F87A #7AE4F8
split-complementary
#CD7AF8 #E4F87A #7AF88E
monochromatic
#9F0CEB #B740F5 #CD7AF8 #E3B4FB #F4E2FD

Accessibility & contrast

On white

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

On black

7.74
#CD7AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AF8
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AF8#FFFFFF#000000##000000
##CD7AF81.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B98FC
Deuteranopia (green-blind)
#759FF5
Tritanopia (blue-blind)
#C98EAE
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7af8;
/* rgb */ color: rgb(205, 122, 248);
/* oklch */ color: oklch(71.8% 0.192 312.9);
Tailwind
colors: {
  custom: {
    50: '#dfa3fb',
    500: '#cd7af8',
    950: '#000000',
  },
}
SCSS
$custom: #cd7af8;
$custom-light: #dfa3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7af8",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 279.524,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.71795,
    "c": 0.19214,
    "h": 312.9
  },
  "luminance": 0.33676
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD7AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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