#CB54E8#CB54E8

#CB54E8 is a light, highly saturated purple. Relative luminance 0.249; OKLCH L 65.8% C 0.231 H 319.2°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#CB54E8
RGBrgb(203, 84, 232)
HSLhsl(288, 76%, 62%)
HSVhsv(288, 64%, 91%)
CMYKcmyk(12.5%, 63.8%, 0%, 9%)
CIE-LABlab(56.94, 67.52, -53.87)
CIE-LCHlch(56.94, 86.38, 321.41°)
OKLaboklab(65.8% 0.1746 -0.1506)
OKLCHoklch(65.8% 0.231 319.2)
XYZxyz(42.3625, 24.8653, 78.8963)
Luminance0.2486 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB54E8 #71E854
analogous
#8154E8 #CB54E8 #E854BB
triadic
#CB54E8 #E8CB54 #54E8CB
tetradic
#CB54E8 #E88154 #71E854 #54BBE8
square
#CB54E8 #E88154 #71E854 #54BBE8
split-complementary
#CB54E8 #BBE854 #54E881
monochromatic
#8E17AB #BB1EE1 #CB54E8 #DB8AEF #ECC0F7

Accessibility & contrast

On white

3.52
#CB54E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#CB54E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB54E8
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB54E8#FFFFFF#000000##000000
##CB54E81.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2681EC
Deuteranopia (green-blind)
#5E8DE4
Tritanopia (blue-blind)
#CB6E97
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #cb54e8;
/* rgb */ color: rgb(203, 84, 232);
/* oklch */ color: oklch(65.8% 0.231 319.2);
Tailwind
colors: {
  custom: {
    50: '#de8cf0',
    500: '#cb54e8',
    950: '#000000',
  },
}
SCSS
$custom: #cb54e8;
$custom-light: #de8cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#cb54e8",
  "rgb": {
    "r": 203,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 288.243,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.65798,
    "c": 0.2306,
    "h": 319.2
  },
  "luminance": 0.24863
}

Semantic roles & 50–950 ramp

primary
#CB54E8
secondary
#BBE7B1
accent
#D80D35
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160D17
muted
#847D85

Preview Lab

Preview with #CB54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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