#CD7FEA#CD7FEA

#CD7FEA is a light, vivid purple. Relative luminance 0.341; OKLCH L 71.8% C 0.169 H 316.3°. Best body text is #000000 at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#CD7FEA
RGBrgb(205, 127, 234)
HSLhsl(284, 72%, 71%)
HSVhsv(284, 46%, 92%)
CMYKcmyk(12.4%, 45.7%, 0%, 8.2%)
CIE-LABlab(65.04, 47.79, -42.16)
CIE-LCHlch(65.04, 63.73, 318.58°)
OKLaboklab(71.83% 0.1224 -0.1168)
OKLCHoklch(71.83% 0.169 316.3)
XYZxyz(47.6153, 34.0998, 81.8996)
Luminance0.3410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD7FEA #9CEA7F
analogous
#977FEA #CD7FEA #EA7FD2
triadic
#CD7FEA #EACD7F #7FEACD
tetradic
#CD7FEA #EA977F #9CEA7F #7FD2EA
square
#CD7FEA #EA977F #9CEA7F #7FD2EA
split-complementary
#CD7FEA #D2EA7F #7FEA97
monochromatic
#9F22CD #B84AE1 #CD7FEA #E2B4F3 #F5E5FB

Accessibility & contrast

On white

2.69
#CD7FEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.82
#CD7FEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD7FEA
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD7FEA#FFFFFF#000000##000000
##CD7FEA1.002.697.827.82
#FFFFFF2.691.0021.0021.00
#0000007.8221.001.001.00
##0000007.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B99EE
Deuteranopia (green-blind)
#81A0E7
Tritanopia (blue-blind)
#CC8EAA
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cd7fea;
/* rgb */ color: rgb(205, 127, 234);
/* oklch */ color: oklch(71.8% 0.169 316.3);
Tailwind
colors: {
  custom: {
    50: '#dea6f1',
    500: '#cd7fea',
    950: '#000000',
  },
}
SCSS
$custom: #cd7fea;
$custom-light: #dea6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd7fea",
  "rgb": {
    "r": 205,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 283.738,
    "s": 71.812,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71828,
    "c": 0.16917,
    "h": 316.3
  },
  "luminance": 0.34098
}

Semantic roles & 50–950 ramp

primary
#CD7FEA
secondary
#DCF1D4
accent
#D41246
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CD7FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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