#CD51F2#CD51F2

#CD51F2 is a light, highly saturated purple. Relative luminance 0.253; OKLCH L 66.3% C 0.244 H 317.5°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#CD51F2
RGBrgb(205, 81, 242)
HSLhsl(286, 86%, 63%)
HSVhsv(286, 67%, 95%)
CMYKcmyk(15.3%, 66.5%, 0%, 5.1%)
CIE-LABlab(57.34, 71.07, -58.81)
CIE-LCHlch(57.34, 92.25, 320.40°)
OKLaboklab(66.33% 0.1799 -0.165)
OKLCHoklch(66.33% 0.244 317.5)
XYZxyz(44.1440, 25.2766, 86.5408)
Luminance0.2527 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51F2 #76F251
analogous
#7C51F2 #CD51F2 #F251C6
triadic
#CD51F2 #F2CD51 #51F2CD
tetradic
#CD51F2 #F27C51 #76F251 #51C6F2
square
#CD51F2 #F27C51 #76F251 #51C6F2
split-complementary
#CD51F2 #C6F251 #51F27C
monochromatic
#930EBB #BD18EE #CD51F2 #DD8AF6 #EEC3FB

Accessibility & contrast

On white

3.47
#CD51F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#CD51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51F2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51F2#FFFFFF#000000##000000
##CD51F21.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082F7
Deuteranopia (green-blind)
#568EEE
Tritanopia (blue-blind)
#CC6F9B
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #cd51f2;
/* rgb */ color: rgb(205, 81, 242);
/* oklch */ color: oklch(66.3% 0.244 317.5);
Tailwind
colors: {
  custom: {
    50: '#e08bf7',
    500: '#cd51f2',
    950: '#000000',
  },
}
SCSS
$custom: #cd51f2;
$custom-light: #e08bf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51f2",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 286.211,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.66325,
    "c": 0.24409,
    "h": 317.5
  },
  "luminance": 0.25275
}

Semantic roles & 50–950 ramp

primary
#CD51F2
secondary
#C0ECB3
accent
#E30336
background
#FEF8FF
surface
#FCF0FF
border
#D5CBD7
text
#160D17
muted
#847D85

Preview Lab

Preview with #CD51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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