#CB51D5#CB51D5

#CB51D5 is a light, highly saturated purple. Relative luminance 0.234; OKLCH L 64.4% C 0.218 H 324.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#CB51D5
RGBrgb(203, 81, 213)
HSLhsl(295, 61%, 58%)
HSVhsv(295, 62%, 84%)
CMYKcmyk(4.7%, 62%, 0%, 16.5%)
CIE-LABlab(55.47, 65.32, -45.50)
CIE-LCHlch(55.47, 79.60, 325.14°)
OKLaboklab(64.4% 0.1777 -0.1262)
OKLCHoklch(64.4% 0.218 324.6)
XYZxyz(39.5803, 23.3878, 65.3674)
Luminance0.2339 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51D5 #5BD551
analogous
#8951D5 #CB51D5 #D5519D
triadic
#CB51D5 #D5CB51 #51D5CB
tetradic
#CB51D5 #D58951 #5BD551 #519DD5
square
#CB51D5 #D58951 #5BD551 #519DD5
split-complementary
#CB51D5 #9DD551 #51D589
monochromatic
#82218A #B12DBC #CB51D5 #DA82E1 #E8B4ED

Accessibility & contrast

On white

3.70
#CB51D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#CB51D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51D5
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51D5#FFFFFF#000000##000000
##CB51D51.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#397BD9
Deuteranopia (green-blind)
#688AD2
Tritanopia (blue-blind)
#CF648C
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cb51d5;
/* rgb */ color: rgb(203, 81, 213);
/* oklch */ color: oklch(64.4% 0.218 324.6);
Tailwind
colors: {
  custom: {
    50: '#de8ae2',
    500: '#cb51d5',
    950: '#000000',
  },
}
SCSS
$custom: #cb51d5;
$custom-light: #de8ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51d5",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 213
  },
  "hsl": {
    "h": 295.455,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.64402,
    "c": 0.21794,
    "h": 324.6
  },
  "luminance": 0.23385
}

Semantic roles & 50–950 ramp

primary
#CB51D5
secondary
#AADBA6
accent
#E44450
background
#FEF8FD
surface
#FCF0FB
border
#D5CBD4
text
#160C15
muted
#847D83

Preview Lab

Preview with #CB51D5

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

Preview Lab → · Contrast checker → · Palette generator →

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