#CB51F6#CB51F6

#CB51F6 is a light, highly saturated purple. Relative luminance 0.252; OKLCH L 66.3% C 0.247 H 315.9°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#CB51F6
RGBrgb(203, 81, 246)
HSLhsl(284, 90%, 64%)
HSVhsv(284, 67%, 96%)
CMYKcmyk(17.5%, 67.1%, 0%, 3.5%)
CIE-LABlab(57.31, 71.41, -61.11)
CIE-LCHlch(57.31, 93.99, 319.45°)
OKLaboklab(66.32% 0.1774 -0.1718)
OKLCHoklch(66.32% 0.247 315.9)
XYZxyz(44.2030, 25.2368, 89.7137)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51F6 #7CF651
analogous
#7951F6 #CB51F6 #F651CE
triadic
#CB51F6 #F6CB51 #51F6CB
tetradic
#CB51F6 #F67951 #7CF651 #51CEF6
square
#CB51F6 #F67951 #7CF651 #51CEF6
split-complementary
#CB51F6 #CEF651 #51F679
monochromatic
#920AC3 #BA17F3 #CB51F6 #DC8BF9 #EEC5FC

Accessibility & contrast

On white

3.47
#CB51F6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#CB51F6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51F6
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51F6#FFFFFF#000000##000000
##CB51F61.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0082FB
Deuteranopia (green-blind)
#508DF2
Tritanopia (blue-blind)
#C8719E
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #cb51f6;
/* rgb */ color: rgb(203, 81, 246);
/* oklch */ color: oklch(66.3% 0.247 315.9);
Tailwind
colors: {
  custom: {
    50: '#df8bfa',
    500: '#cb51f6',
    950: '#000000',
  },
}
SCSS
$custom: #cb51f6;
$custom-light: #df8bfa;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51f6",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 246
  },
  "hsl": {
    "h": 284.364,
    "s": 90.164,
    "l": 64.118
  },
  "oklch": {
    "l": 0.66316,
    "c": 0.2469,
    "h": 315.9
  },
  "luminance": 0.25235
}

Semantic roles & 50–950 ramp

primary
#CB51F6
secondary
#C4EEB5
accent
#E6003C
background
#FEF8FF
surface
#FCF0FF
border
#D5CBD7
text
#160D17
muted
#847D85

Preview Lab

Preview with #CB51F6

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

Preview Lab → · Contrast checker → · Palette generator →

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