#CB51C7#CB51C7

#CB51C7 is a light, highly saturated purple. Relative luminance 0.227; OKLCH L 63.7% C 0.206 H 329.0°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#CB51C7
RGBrgb(203, 81, 199)
HSLhsl(302, 54%, 56%)
HSVhsv(302, 60%, 80%)
CMYKcmyk(0%, 60.1%, 2%, 20.4%)
CIE-LABlab(54.77, 62.91, -38.61)
CIE-LCHlch(54.77, 73.82, 328.46°)
OKLaboklab(63.67% 0.1767 -0.1063)
OKLCHoklch(63.67% 0.206 329)
XYZxyz(37.8794, 22.7074, 56.4096)
Luminance0.2271 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51C7 #51CB55
analogous
#9251CB #CB51C7 #CB518A
triadic
#CB51C7 #C7CB51 #51C7CB
tetradic
#CB51C7 #CB9251 #51CB55 #518ACB
square
#CB51C7 #CB9251 #51CB55 #518ACB
split-complementary
#CB51C7 #8ACB51 #51CB92
monochromatic
#7C257A #AC33A8 #CB51C7 #D980D6 #E7AFE5

Accessibility & contrast

On white

3.79
#CB51C7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#CB51C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51C7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51C7#FFFFFF#000000##000000
##CB51C71.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4679CB
Deuteranopia (green-blind)
#6F89C4
Tritanopia (blue-blind)
#D25F85
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #cb51c7;
/* rgb */ color: rgb(203, 81, 199);
/* oklch */ color: oklch(63.7% 0.206 329.0);
Tailwind
colors: {
  custom: {
    50: '#de89d8',
    500: '#cb51c7',
    950: '#000000',
  },
}
SCSS
$custom: #cb51c7;
$custom-light: #de89d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51c7",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 199
  },
  "hsl": {
    "h": 301.967,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.63666,
    "c": 0.20623,
    "h": 329
  },
  "luminance": 0.22705
}

Semantic roles & 50–950 ramp

primary
#CB51C7
secondary
#A3D5A4
accent
#DD4F4A
background
#FEF8FD
surface
#FCF0FA
border
#D5CBD3
text
#150C14
muted
#847D83

Preview Lab

Preview with #CB51C7

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

Preview Lab → · Contrast checker → · Palette generator →

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