#CF51CD#CF51CD

#CF51CD is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 64.5% C 0.213 H 328.3°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#CF51CD
RGBrgb(207, 81, 205)
HSLhsl(301, 57%, 56%)
HSVhsv(301, 61%, 81%)
CMYKcmyk(0%, 60.9%, 1%, 18.8%)
CIE-LABlab(55.65, 64.92, -40.63)
CIE-LCHlch(55.65, 76.58, 327.96°)
OKLaboklab(64.52% 0.1816 -0.112)
OKLCHoklch(64.52% 0.213 328.3)
XYZxyz(39.6935, 23.5607, 60.2027)
Luminance0.2356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CF51CD #51CF53
analogous
#9251CF #CF51CD #CF518E
triadic
#CF51CD #CDCF51 #51CDCF
tetradic
#CF51CD #CF9251 #51CF53 #518ECF
square
#CF51CD #CF9251 #51CF53 #518ECF
split-complementary
#CF51CD #8ECF51 #51CF92
monochromatic
#822480 #B231B0 #CF51CD #DC81DB #E9B1E9

Accessibility & contrast

On white

3.68
#CF51CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#CF51CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CF51CD
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CF51CD#FFFFFF#000000##000000
##CF51CD1.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#437BD1
Deuteranopia (green-blind)
#708BCA
Tritanopia (blue-blind)
#D56088
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cf51cd;
/* rgb */ color: rgb(207, 81, 205);
/* oklch */ color: oklch(64.5% 0.213 328.3);
Tailwind
colors: {
  custom: {
    50: '#e18adc',
    500: '#cf51cd',
    950: '#000000',
  },
}
SCSS
$custom: #cf51cd;
$custom-light: #e18adc;
$custom-dark: #000000;
JSON
{
  "hex": "#cf51cd",
  "rgb": {
    "r": 207,
    "g": 81,
    "b": 205
  },
  "hsl": {
    "h": 300.952,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.64515,
    "c": 0.21336,
    "h": 328.3
  },
  "luminance": 0.23558
}

Semantic roles & 50–950 ramp

primary
#CF51CD
secondary
#A4D8A5
accent
#E04A48
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CF51CD

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

Preview Lab → · Contrast checker → · Palette generator →

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