#CB51F2#CB51F2

#CB51F2 is a light, highly saturated purple. Relative luminance 0.250; OKLCH L 66.1% C 0.243 H 316.9°. Best body text is #000000 at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#CB51F2
RGBrgb(203, 81, 242)
HSLhsl(285, 86%, 63%)
HSVhsv(285, 67%, 95%)
CMYKcmyk(16.1%, 66.5%, 0%, 5.1%)
CIE-LABlab(57.07, 70.65, -59.26)
CIE-LCHlch(57.07, 92.21, 320.01°)
OKLaboklab(66.07% 0.1776 -0.1663)
OKLCHoklch(66.07% 0.243 316.9)
XYZxyz(43.5957, 24.9939, 86.5151)
Luminance0.2499 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51F2 #78F251
analogous
#7A51F2 #CB51F2 #F251C8
triadic
#CB51F2 #F2CB51 #51F2CB
tetradic
#CB51F2 #F27A51 #78F251 #51C8F2
square
#CB51F2 #F27A51 #78F251 #51C8F2
split-complementary
#CB51F2 #C8F251 #51F27A
monochromatic
#910EBB #BA18EE #CB51F2 #DC8AF6 #EDC3FB

Accessibility & contrast

On white

3.50
#CB51F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.00
#CB51F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51F2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51F2#FFFFFF#000000##000000
##CB51F21.003.506.006.00
#FFFFFF3.501.0021.0021.00
#0000006.0021.001.001.00
##0000006.0021.001.001.00

Color blindness preview

Protanopia (red-blind)
#0081F7
Deuteranopia (green-blind)
#548DEE
Tritanopia (blue-blind)
#C9709B
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #cb51f2;
/* rgb */ color: rgb(203, 81, 242);
/* oklch */ color: oklch(66.1% 0.243 316.9);
Tailwind
colors: {
  custom: {
    50: '#df8af7',
    500: '#cb51f2',
    950: '#000000',
  },
}
SCSS
$custom: #cb51f2;
$custom-light: #df8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51f2",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 242
  },
  "hsl": {
    "h": 285.466,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.66071,
    "c": 0.24332,
    "h": 316.9
  },
  "luminance": 0.24992
}

Semantic roles & 50–950 ramp

primary
#CB51F2
secondary
#C1ECB3
accent
#E30339
background
#FEF8FF
surface
#FCF0FF
border
#D5CBD7
text
#160D17
muted
#847D85

Preview Lab

Preview with #CB51F2

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

Preview Lab → · Contrast checker → · Palette generator →

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