#CD7AF2#CD7AF2

#CD7AF2 is a light, vivid purple. Relative luminance 0.333; OKLCH L 71.5% C 0.186 H 314.5°. Best body text is #000000 at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#CD7AF2
RGBrgb(205, 122, 242)
HSLhsl(282, 82%, 71%)
HSVhsv(282, 50%, 95%)
CMYKcmyk(15.3%, 49.6%, 0%, 5.1%)
CIE-LABlab(64.41, 52.02, -47.57)
CIE-LCHlch(64.41, 70.49, 317.56°)
OKLaboklab(71.48% 0.1302 -0.1324)
OKLCHoklch(71.48% 0.186 314.5)
XYZxyz(48.1608, 33.3103, 87.8797)
Luminance0.3331 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AF2 #9FF27A
analogous
#917AF2 #CD7AF2 #F27ADB
triadic
#CD7AF2 #F2CD7A #7AF2CD
tetradic
#CD7AF2 #F2917A #9FF27A #7ADBF2
square
#CD7AF2 #F2917A #9FF27A #7ADBF2
split-complementary
#CD7AF2 #DBF27A #7AF291
monochromatic
#9F16DC #B842ED #CD7AF2 #E2B2F7 #F5E3FC

Accessibility & contrast

On white

2.74
#CD7AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.66
#CD7AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AF2
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AF2#FFFFFF#000000##000000
##CD7AF21.002.747.667.66
#FFFFFF2.741.0021.0021.00
#0000007.6621.001.001.00
##0000007.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6097F6
Deuteranopia (green-blind)
#789EEF
Tritanopia (blue-blind)
#CA8DAB
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cd7af2;
/* rgb */ color: rgb(205, 122, 242);
/* oklch */ color: oklch(71.5% 0.186 314.5);
Tailwind
colors: {
  custom: {
    50: '#dea3f7',
    500: '#cd7af2',
    950: '#000000',
  },
}
SCSS
$custom: #cd7af2;
$custom-light: #dea3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7af2",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 281.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71482,
    "c": 0.18575,
    "h": 314.5
  },
  "luminance": 0.33309
}

Semantic roles & 50–950 ramp

primary
#CD7AF2
secondary
#DEF3D4
accent
#DF0749
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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