#CD51FF#CD51FF

#CD51FF is a light, highly saturated purple. Relative luminance 0.261; OKLCH L 67.1% C 0.256 H 314.5°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#CD51FF
RGBrgb(205, 81, 255)
HSLhsl(283, 100%, 66%)
HSVhsv(283, 68%, 100%)
CMYKcmyk(19.6%, 68.2%, 0%, 0%)
CIE-LABlab(58.12, 73.56, -64.78)
CIE-LCHlch(58.12, 98.02, 318.63°)
OKLaboklab(67.13% 0.1791 -0.1825)
OKLCHoklch(67.13% 0.256 314.5)
XYZxyz(46.1663, 26.0856, 97.1915)
Luminance0.2608 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD51FF #83FF51
analogous
#7651FF #CD51FF #FF51DA
triadic
#CD51FF #FFCD51 #51FFCD
tetradic
#CD51FF #FF7651 #83FF51 #51DAFF
square
#CD51FF #FF7651 #83FF51 #51DAFF
split-complementary
#CD51FF #DAFF51 #51FF76
monochromatic
#9800D6 #BB14FF #CD51FF #DF8EFF #F0CBFF

Accessibility & contrast

On white

3.38
#CD51FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#CD51FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CD51FF
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD51FF#FFFFFF#000000##000000
##CD51FF1.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0085FF
Deuteranopia (green-blind)
#498FFB
Tritanopia (blue-blind)
#C975A2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #cd51ff;
/* rgb */ color: rgb(205, 81, 255);
/* oklch */ color: oklch(67.1% 0.256 314.5);
Tailwind
colors: {
  custom: {
    50: '#e18bff',
    500: '#cd51ff',
    950: '#000000',
  },
}
SCSS
$custom: #cd51ff;
$custom-light: #e18bff;
$custom-dark: #000000;
JSON
{
  "hex": "#cd51ff",
  "rgb": {
    "r": 205,
    "g": 81,
    "b": 255
  },
  "hsl": {
    "h": 282.759,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.67127,
    "c": 0.25566,
    "h": 314.5
  },
  "luminance": 0.26084
}

Semantic roles & 50–950 ramp

primary
#CD51FF
secondary
#CAF3B9
accent
#E60042
background
#FEF9FF
surface
#FDF1FF
border
#D5CBD7
text
#160D18
muted
#847E86

Preview Lab

Preview with #CD51FF

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

Preview Lab → · Contrast checker → · Palette generator →

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