#CD31E2#CD31E2

#CD31E2 is a light, highly saturated purple. Relative luminance 0.207; OKLCH L 62.6% C 0.264 H 322.5°. Best body text is #000000 at 5.13:1 contrast (WCAG AA passes).

Color values

HEX#CD31E2
RGBrgb(205, 49, 226)
HSLhsl(293, 75%, 54%)
HSVhsv(293, 78%, 89%)
CMYKcmyk(9.3%, 78.3%, 0%, 11.4%)
CIE-LABlab(52.59, 79.07, -57.45)
CIE-LCHlch(52.59, 97.74, 324.00°)
OKLaboklab(62.63% 0.2099 -0.1608)
OKLCHoklch(62.63% 0.264 322.5)
XYZxyz(40.0012, 20.6692, 73.8194)
Luminance0.2067 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD31E2 #46E231
analogous
#7531E2 #CD31E2 #E2319F
triadic
#CD31E2 #E2CD31 #31E2CD
tetradic
#CD31E2 #E27531 #46E231 #319FE2
square
#CD31E2 #E27531 #46E231 #319FE2
split-complementary
#CD31E2 #9FE231 #31E275
monochromatic
#781386 #A81ABB #CD31E2 #DA67EA #E79CF1

Accessibility & contrast

On white

4.09
#CD31E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.13
#CD31E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD31E2
5.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD31E2#FFFFFF#000000##000000
##CD31E21.004.095.135.13
#FFFFFF4.091.0021.0021.00
#0000005.1321.001.001.00
##0000005.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0072E7
Deuteranopia (green-blind)
#4F83DE
Tritanopia (blue-blind)
#D0568A
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #cd31e2;
/* rgb */ color: rgb(205, 49, 226);
/* oklch */ color: oklch(62.6% 0.264 322.5);
Tailwind
colors: {
  custom: {
    50: '#e17cec',
    500: '#cd31e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd31e2;
$custom-light: #e17cec;
$custom-dark: #000000;
JSON
{
  "hex": "#cd31e2",
  "rgb": {
    "r": 205,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 292.881,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.62631,
    "c": 0.26437,
    "h": 322.5
  },
  "luminance": 0.20667
}

Semantic roles & 50–950 ramp

primary
#CD31E2
secondary
#9BDD92
accent
#F2364C
background
#FEF8FE
surface
#FDEFFD
border
#D5CAD5
text
#160B16
muted
#847C84

Preview Lab

Preview with #CD31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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