#CB54F2#CB54F2

#CB54F2 is a light, highly saturated purple. Relative luminance 0.254; OKLCH L 66.4% C 0.240 H 316.7°. Best body text is #000000 at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#CB54F2
RGBrgb(203, 84, 242)
HSLhsl(285, 86%, 64%)
HSVhsv(285, 65%, 95%)
CMYKcmyk(16.1%, 65.3%, 0%, 5.1%)
CIE-LABlab(57.51, 69.41, -58.55)
CIE-LCHlch(57.51, 90.81, 319.85°)
OKLaboklab(66.39% 0.1744 -0.1643)
OKLCHoklch(66.39% 0.24 316.7)
XYZxyz(43.8235, 25.4497, 86.5910)
Luminance0.2545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB54F2 #7BF254
analogous
#7C54F2 #CB54F2 #F254CA
triadic
#CB54F2 #F2CB54 #54F2CB
tetradic
#CB54F2 #F27C54 #7BF254 #54CAF2
square
#CB54F2 #F27C54 #7BF254 #54CAF2
split-complementary
#CB54F2 #CAF254 #54F27C
monochromatic
#920EBD #BA1BEE #CB54F2 #DC8DF6 #EEC6FB

Accessibility & contrast

On white

3.45
#CB54F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.09
#CB54F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB54F2
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB54F2#FFFFFF#000000##000000
##CB54F21.003.456.096.09
#FFFFFF3.451.0021.0021.00
#0000006.0921.001.001.00
##0000006.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0883F7
Deuteranopia (green-blind)
#568EEE
Tritanopia (blue-blind)
#C9729C
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #cb54f2;
/* rgb */ color: rgb(203, 84, 242);
/* oklch */ color: oklch(66.4% 0.240 316.7);
Tailwind
colors: {
  custom: {
    50: '#df8cf7',
    500: '#cb54f2',
    950: '#000000',
  },
}
SCSS
$custom: #cb54f2;
$custom-light: #df8cf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb54f2",
  "rgb": {
    "r": 203,
    "g": 84,
    "b": 242
  },
  "hsl": {
    "h": 285.19,
    "s": 85.87,
    "l": 63.922
  },
  "oklch": {
    "l": 0.66388,
    "c": 0.23959,
    "h": 316.7
  },
  "luminance": 0.25448
}

Semantic roles & 50–950 ramp

primary
#CB54F2
secondary
#C3EDB5
accent
#E2033A
background
#FEF9FF
surface
#FCF1FF
border
#D5CBD7
text
#160D17
muted
#847E85

Preview Lab

Preview with #CB54F2

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

Preview Lab → · Contrast checker → · Palette generator →

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