#CB51E7#CB51E7

#CB51E7 is a light, highly saturated purple. Relative luminance 0.244; OKLCH L 65.4% C 0.234 H 319.6°. Best body text is #000000 at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#CB51E7
RGBrgb(203, 81, 231)
HSLhsl(289, 76%, 61%)
HSVhsv(289, 65%, 91%)
CMYKcmyk(12.1%, 64.9%, 0%, 9.4%)
CIE-LABlab(56.44, 68.58, -54.12)
CIE-LCHlch(56.44, 87.36, 321.72°)
OKLaboklab(65.42% 0.1779 -0.1513)
OKLCHoklch(65.42% 0.234 319.6)
XYZxyz(41.9930, 24.3529, 78.0744)
Luminance0.2435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51E7 #6DE751
analogous
#8051E7 #CB51E7 #E751B8
triadic
#CB51E7 #E7CB51 #51E7CB
tetradic
#CB51E7 #E78051 #6DE751 #51B8E7
square
#CB51E7 #E78051 #6DE751 #51B8E7
split-complementary
#CB51E7 #B8E751 #51E780
monochromatic
#8C17A7 #B91EDC #CB51E7 #DB87EE #EBBDF6

Accessibility & contrast

On white

3.58
#CB51E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.87
#CB51E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51E7
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51E7#FFFFFF#000000##000000
##CB51E71.003.585.875.87
#FFFFFF3.581.0021.0021.00
#0000005.8721.001.001.00
##0000005.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#1F7FEB
Deuteranopia (green-blind)
#5C8CE3
Tritanopia (blue-blind)
#CC6B95
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #cb51e7;
/* rgb */ color: rgb(203, 81, 231);
/* oklch */ color: oklch(65.4% 0.234 319.6);
Tailwind
colors: {
  custom: {
    50: '#de8aef',
    500: '#cb51e7',
    950: '#000000',
  },
}
SCSS
$custom: #cb51e7;
$custom-light: #de8aef;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51e7",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 288.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.65416,
    "c": 0.23357,
    "h": 319.6
  },
  "luminance": 0.24351
}

Semantic roles & 50–950 ramp

primary
#CB51E7
secondary
#B8E6AE
accent
#D80E33
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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