#CB51CB#CB51CB

#CB51CB is a light, highly saturated purple. Relative luminance 0.229; OKLCH L 63.9% C 0.210 H 327.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#CB51CB
RGBrgb(203, 81, 203)
HSLhsl(300, 54%, 56%)
HSVhsv(300, 60%, 80%)
CMYKcmyk(0%, 60.1%, 0%, 20.4%)
CIE-LABlab(54.96, 63.59, -40.60)
CIE-LCHlch(54.96, 75.44, 327.44°)
OKLaboklab(63.87% 0.1771 -0.112)
OKLCHoklch(63.87% 0.21 327.7)
XYZxyz(38.3500, 22.8956, 58.8877)
Luminance0.2289 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51CB #51CB51
analogous
#8E51CB #CB51CB #CB518E
triadic
#CB51CB #CBCB51 #51CBCB
tetradic
#CB51CB #CB8E51 #51CB51 #518ECB
square
#CB51CB #CB8E51 #51CB51 #518ECB
split-complementary
#CB51CB #8ECB51 #51CB8E
monochromatic
#7C257C #AC33AC #CB51CB #D980D9 #E7AFE7

Accessibility & contrast

On white

3.76
#CB51CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#CB51CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51CB
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51CB#FFFFFF#000000##000000
##CB51CB1.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4279CF
Deuteranopia (green-blind)
#6D89C8
Tritanopia (blue-blind)
#D16087
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #cb51cb;
/* rgb */ color: rgb(203, 81, 203);
/* oklch */ color: oklch(63.9% 0.210 327.7);
Tailwind
colors: {
  custom: {
    50: '#de89db',
    500: '#cb51cb',
    950: '#000000',
  },
}
SCSS
$custom: #cb51cb;
$custom-light: #de89db;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51cb",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 300,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.63871,
    "c": 0.20953,
    "h": 327.7
  },
  "luminance": 0.22893
}

Semantic roles & 50–950 ramp

primary
#CB51CB
secondary
#A3D5A3
accent
#DD4A4A
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CB51CB

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

Preview Lab → · Contrast checker → · Palette generator →

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