#CB51DB#CB51DB

#CB51DB is a light, highly saturated purple. Relative luminance 0.237; OKLCH L 64.7% C 0.223 H 322.9°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#CB51DB
RGBrgb(203, 81, 219)
HSLhsl(293, 66%, 59%)
HSVhsv(293, 63%, 86%)
CMYKcmyk(7.3%, 63%, 0%, 14.1%)
CIE-LABlab(55.78, 66.39, -48.40)
CIE-LCHlch(55.78, 82.16, 323.91°)
OKLaboklab(64.73% 0.1779 -0.1346)
OKLCHoklch(64.73% 0.223 322.9)
XYZxyz(40.3560, 23.6980, 69.4526)
Luminance0.2370 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51DB #61DB51
analogous
#8651DB #CB51DB #DB51A6
triadic
#CB51DB #DBCB51 #51DBCB
tetradic
#CB51DB #DB8651 #61DB51 #51A6DB
square
#CB51DB #DB8651 #61DB51 #51A6DB
split-complementary
#CB51DB #A6DB51 #51DB86
monochromatic
#861E93 #B429C6 #CB51DB #DA84E5 #E9B6F0

Accessibility & contrast

On white

3.66
#CB51DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#CB51DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51DB
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51DB#FFFFFF#000000##000000
##CB51DB1.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#327DDF
Deuteranopia (green-blind)
#648BD7
Tritanopia (blue-blind)
#CE678F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cb51db;
/* rgb */ color: rgb(203, 81, 219);
/* oklch */ color: oklch(64.7% 0.223 322.9);
Tailwind
colors: {
  custom: {
    50: '#de8ae7',
    500: '#cb51db',
    950: '#000000',
  },
}
SCSS
$custom: #cb51db;
$custom-light: #de8ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51db",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 219
  },
  "hsl": {
    "h": 293.043,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.64732,
    "c": 0.2231,
    "h": 322.9
  },
  "luminance": 0.23696
}

Semantic roles & 50–950 ramp

primary
#CB51DB
secondary
#AFDFA9
accent
#E93F53
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB51DB

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

Preview Lab → · Contrast checker → · Palette generator →

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