#CD7AF6#CD7AF6

#CD7AF6 is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.7% C 0.190 H 313.4°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#CD7AF6
RGBrgb(205, 122, 246)
HSLhsl(280, 87%, 72%)
HSVhsv(280, 50%, 96%)
CMYKcmyk(16.7%, 50.4%, 0%, 3.5%)
CIE-LABlab(64.61, 52.84, -49.47)
CIE-LCHlch(64.61, 72.38, 316.89°)
OKLaboklab(71.69% 0.1307 -0.1379)
OKLCHoklch(71.69% 0.19 313.4)
XYZxyz(48.7681, 33.5532, 91.0783)
Luminance0.3355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7AF6 #A3F67A
analogous
#8F7AF6 #CD7AF6 #F67AE1
triadic
#CD7AF6 #F6CD7A #7AF6CD
tetradic
#CD7AF6 #F68F7A #A3F67A #7AE1F6
square
#CD7AF6 #F68F7A #A3F67A #7AE1F6
split-complementary
#CD7AF6 #E1F67A #7AF68F
monochromatic
#9F10E6 #B741F2 #CD7AF6 #E3B3FA #F4E2FD

Accessibility & contrast

On white

2.72
#CD7AF6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#CD7AF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7AF6
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7AF6#FFFFFF#000000##000000
##CD7AF61.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D98FA
Deuteranopia (green-blind)
#769FF3
Tritanopia (blue-blind)
#C98EAD
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cd7af6;
/* rgb */ color: rgb(205, 122, 246);
/* oklch */ color: oklch(71.7% 0.190 313.4);
Tailwind
colors: {
  custom: {
    50: '#dfa3f9',
    500: '#cd7af6',
    950: '#000000',
  },
}
SCSS
$custom: #cd7af6;
$custom-light: #dfa3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7af6",
  "rgb": {
    "r": 205,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 280.161,
    "s": 87.324,
    "l": 72.157
  },
  "oklch": {
    "l": 0.7169,
    "c": 0.19,
    "h": 313.4
  },
  "luminance": 0.33552
}

Semantic roles & 50–950 ramp

primary
#CD7AF6
secondary
#E0F5D6
accent
#E4024C
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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