#CB51D9#CB51D9

#CB51D9 is a light, highly saturated purple. Relative luminance 0.236; OKLCH L 64.6% C 0.221 H 323.5°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#CB51D9
RGBrgb(203, 81, 217)
HSLhsl(294, 64%, 58%)
HSVhsv(294, 63%, 85%)
CMYKcmyk(6.5%, 62.7%, 0%, 14.9%)
CIE-LABlab(55.68, 66.03, -47.43)
CIE-LCHlch(55.68, 81.30, 324.31°)
OKLaboklab(64.62% 0.1778 -0.1318)
OKLCHoklch(64.62% 0.221 323.5)
XYZxyz(40.0943, 23.5933, 68.0743)
Luminance0.2359 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51D9 #5FD951
analogous
#8751D9 #CB51D9 #D951A3
triadic
#CB51D9 #D9CB51 #51D9CB
tetradic
#CB51D9 #D98751 #5FD951 #51A3D9
square
#CB51D9 #D98751 #5FD951 #51A3D9
split-complementary
#CB51D9 #A3D951 #51D987
monochromatic
#851F90 #B32AC2 #CB51D9 #DA83E4 #E9B5EF

Accessibility & contrast

On white

3.67
#CB51D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#CB51D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51D9
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51D9#FFFFFF#000000##000000
##CB51D91.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#357CDD
Deuteranopia (green-blind)
#668AD5
Tritanopia (blue-blind)
#CE668E
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cb51d9;
/* rgb */ color: rgb(203, 81, 217);
/* oklch */ color: oklch(64.6% 0.221 323.5);
Tailwind
colors: {
  custom: {
    50: '#de8ae5',
    500: '#cb51d9',
    950: '#000000',
  },
}
SCSS
$custom: #cb51d9;
$custom-light: #de8ae5;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51d9",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 217
  },
  "hsl": {
    "h": 293.824,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.64621,
    "c": 0.22137,
    "h": 323.5
  },
  "luminance": 0.23591
}

Semantic roles & 50–950 ramp

primary
#CB51D9
secondary
#ADDEA8
accent
#E74152
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB51D9

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

Preview Lab → · Contrast checker → · Palette generator →

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