#CB51DF#CB51DF

#CB51DF is a light, highly saturated purple. Relative luminance 0.239; OKLCH L 65.0% C 0.227 H 321.8°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#CB51DF
RGBrgb(203, 81, 223)
HSLhsl(292, 69%, 60%)
HSVhsv(292, 64%, 87%)
CMYKcmyk(9%, 63.7%, 0%, 12.5%)
CIE-LABlab(56.00, 67.11, -50.32)
CIE-LCHlch(56.00, 83.88, 323.14°)
OKLaboklab(64.96% 0.178 -0.1402)
OKLCHoklch(64.96% 0.227 321.8)
XYZxyz(40.8889, 23.9112, 72.2593)
Luminance0.2391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CB51DF #65DF51
analogous
#8451DF #CB51DF #DF51AC
triadic
#CB51DF #DFCB51 #51DFCB
tetradic
#CB51DF #DF8451 #65DF51 #51ACDF
square
#CB51DF #DF8451 #65DF51 #51ACDF
split-complementary
#CB51DF #ACDF51 #51DF84
monochromatic
#881C99 #B626CD #CB51DF #DA85E9 #EAB8F2

Accessibility & contrast

On white

3.63
#CB51DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#CB51DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CB51DF
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CB51DF#FFFFFF#000000##000000
##CB51DF1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D7DE3
Deuteranopia (green-blind)
#628BDB
Tritanopia (blue-blind)
#CD6891
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #cb51df;
/* rgb */ color: rgb(203, 81, 223);
/* oklch */ color: oklch(65.0% 0.227 321.8);
Tailwind
colors: {
  custom: {
    50: '#de8ae9',
    500: '#cb51df',
    950: '#000000',
  },
}
SCSS
$custom: #cb51df;
$custom-light: #de8ae9;
$custom-dark: #000000;
JSON
{
  "hex": "#cb51df",
  "rgb": {
    "r": 203,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 291.549,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.64956,
    "c": 0.22656,
    "h": 321.8
  },
  "luminance": 0.23909
}

Semantic roles & 50–950 ramp

primary
#CB51DF
secondary
#B2E1AA
accent
#EC3C55
background
#FEF8FE
surface
#FCF0FD
border
#D5CBD5
text
#160C16
muted
#847D84

Preview Lab

Preview with #CB51DF

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

Preview Lab → · Contrast checker → · Palette generator →

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