#CB51E6#CB51E6

#CB51E6 is a light, highly saturated purple. Relative luminance 0.243; OKLCH L 65.4% C 0.233 H 319.9°. Best body text is #000000 at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#CB51E6
RGBrgb(203, 81, 230)
HSLhsl(289, 75%, 61%)
HSVhsv(289, 65%, 90%)
CMYKcmyk(11.7%, 64.8%, 0%, 9.8%)
CIE-LABlab(56.38, 68.39, -53.64)
CIE-LCHlch(56.38, 86.92, 321.89°)
OKLaboklab(65.36% 0.178 -0.1499)
OKLCHoklch(65.36% 0.233 319.9)
XYZxyz(41.8522, 24.2965, 77.3327)
Luminance0.2429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51E6 #6CE651
analogous
#8151E6 #CB51E6 #E651B6
triadic
#CB51E6 #E6CB51 #51E6CB
tetradic
#CB51E6 #E68151 #6CE651 #51B6E6
square
#CB51E6 #E68151 #6CE651 #51B6E6
split-complementary
#CB51E6 #B6E651 #51E681
monochromatic
#8B18A5 #B91FDA #CB51E6 #DB87EE #EBBCF5

Accessibility & contrast

On white

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

On black

5.86
#CB51E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51E6
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51E6#FFFFFF#000000##000000
##CB51E61.003.585.865.86
#FFFFFF3.581.0021.0021.00
#0000005.8621.001.001.00
##0000005.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#217FEA
Deuteranopia (green-blind)
#5D8BE2
Tritanopia (blue-blind)
#CC6B95
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #cb51e6;
/* rgb */ color: rgb(203, 81, 230);
/* oklch */ color: oklch(65.4% 0.233 319.9);
Tailwind
colors: {
  custom: {
    50: '#de8aee',
    500: '#cb51e6',
    950: '#000000',
  },
}
SCSS
$custom: #cb51e6;
$custom-light: #de8aee;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51e6",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 289.128,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.65358,
    "c": 0.23269,
    "h": 319.9
  },
  "luminance": 0.24295
}

Semantic roles & 50–950 ramp

primary
#CB51E6
secondary
#B7E5AD
accent
#D70E33
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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