#CD5AF7#CD5AF7

#CD5AF7 is a light, highly saturated purple. Relative luminance 0.270; OKLCH L 67.6% C 0.237 H 315.8°. Best body text is #000000 at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#CD5AF7
RGBrgb(205, 90, 247)
HSLhsl(284, 91%, 66%)
HSVhsv(284, 64%, 97%)
CMYKcmyk(17%, 63.6%, 0%, 3.1%)
CIE-LABlab(58.98, 68.28, -58.96)
CIE-LCHlch(58.98, 90.21, 319.19°)
OKLaboklab(67.6% 0.17 -0.1655)
OKLCHoklch(67.6% 0.237 315.8)
XYZxyz(45.6189, 27.0085, 90.7878)
Luminance0.2701 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD5AF7 #84F75A
analogous
#7E5AF7 #CD5AF7 #F75AD2
triadic
#CD5AF7 #F7CD5A #5AF7CD
tetradic
#CD5AF7 #F77E5A #84F75A #5AD2F7
square
#CD5AF7 #F77E5A #84F75A #5AD2F7
split-complementary
#CD5AF7 #D2F75A #5AF77E
monochromatic
#990ACD #BB20F4 #CD5AF7 #DF94FA #F0CFFD

Accessibility & contrast

On white

3.28
#CD5AF7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.40
#CD5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD5AF7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD5AF7#FFFFFF#000000##000000
##CD5AF71.003.286.406.40
#FFFFFF3.281.0021.0021.00
#0000006.4021.001.001.00
##0000006.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A87FC
Deuteranopia (green-blind)
#5991F3
Tritanopia (blue-blind)
#CA77A1
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #cd5af7;
/* rgb */ color: rgb(205, 90, 247);
/* oklch */ color: oklch(67.6% 0.237 315.8);
Tailwind
colors: {
  custom: {
    50: '#e090fa',
    500: '#cd5af7',
    950: '#000000',
  },
}
SCSS
$custom: #cd5af7;
$custom-light: #e090fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd5af7",
  "rgb": {
    "r": 205,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 283.949,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.67596,
    "c": 0.23725,
    "h": 315.8
  },
  "luminance": 0.27007
}

Semantic roles & 50–950 ramp

primary
#CD5AF7
secondary
#CAF0BD
accent
#E6003D
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CD5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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