#CB51D7#CB51D7

#CB51D7 is a light, highly saturated purple. Relative luminance 0.235; OKLCH L 64.5% C 0.220 H 324.0°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#CB51D7
RGBrgb(203, 81, 215)
HSLhsl(295, 63%, 58%)
HSVhsv(295, 62%, 84%)
CMYKcmyk(5.6%, 62.3%, 0%, 15.7%)
CIE-LABlab(55.57, 65.67, -46.47)
CIE-LCHlch(55.57, 80.45, 324.72°)
OKLaboklab(64.51% 0.1778 -0.129)
OKLCHoklch(64.51% 0.22 324)
XYZxyz(39.8357, 23.4899, 66.7126)
Luminance0.2349 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51D7 #5DD751
analogous
#8851D7 #CB51D7 #D751A0
triadic
#CB51D7 #D7CB51 #51D7CB
tetradic
#CB51D7 #D78851 #5DD751 #51A0D7
square
#CB51D7 #D78851 #5DD751 #51A0D7
split-complementary
#CB51D7 #A0D751 #51D788
monochromatic
#83208D #B22CBF #CB51D7 #DA83E2 #E9B5EE

Accessibility & contrast

On white

3.69
#CB51D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#CB51D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51D7
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51D7#FFFFFF#000000##000000
##CB51D71.003.695.705.70
#FFFFFF3.691.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#377CDB
Deuteranopia (green-blind)
#678AD3
Tritanopia (blue-blind)
#CF658D
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #cb51d7;
/* rgb */ color: rgb(203, 81, 215);
/* oklch */ color: oklch(64.5% 0.220 324.0);
Tailwind
colors: {
  custom: {
    50: '#de8ae4',
    500: '#cb51d7',
    950: '#000000',
  },
}
SCSS
$custom: #cb51d7;
$custom-light: #de8ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51d7",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 294.627,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.64511,
    "c": 0.21965,
    "h": 324
  },
  "luminance": 0.23488
}

Semantic roles & 50–950 ramp

primary
#CB51D7
secondary
#ACDDA7
accent
#E64251
background
#FEF8FE
surface
#FCF0FC
border
#D5CBD5
text
#160C15
muted
#847D84

Preview Lab

Preview with #CB51D7

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

Preview Lab → · Contrast checker → · Palette generator →

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