#5B2276#5B2276

#5B2276 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 37.8% C 0.142 H 312.8°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#5B2276
RGBrgb(91, 34, 118)
HSLhsl(281, 55%, 30%)
HSVhsv(281, 71%, 46%)
CMYKcmyk(22.9%, 71.2%, 0%, 53.7%)
CIE-LABlab(25.79, 40.40, -36.91)
CIE-LCHlch(25.79, 54.72, 317.58°)
OKLaboklab(37.8% 0.0963 -0.1041)
OKLCHoklch(37.8% 0.142 312.8)
XYZxyz(8.1558, 4.6764, 17.6090)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2276 #3D7622
analogous
#312276 #5B2276 #762267
triadic
#5B2276 #765B22 #22765B
tetradic
#5B2276 #763122 #3D7622 #226776
square
#5B2276 #763122 #3D7622 #226776
split-complementary
#5B2276 #677622 #227631
monochromatic
#120718 #361446 #5B2276 #8030A6 #A048CA

Accessibility & contrast

On white

10.85
#5B2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5B2276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2276
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2276#FFFFFF#000000##FFFFFF
##5B22761.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A78
Deuteranopia (green-blind)
#1B3E74
Tritanopia (blue-blind)
#583349
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5b2276;
/* rgb */ color: rgb(91, 34, 118);
/* oklch */ color: oklch(37.8% 0.142 312.8);
Tailwind
colors: {
  custom: {
    50: '#8c629e',
    500: '#5b2276',
    950: '#000000',
  },
}
SCSS
$custom: #5b2276;
$custom-light: #8c629e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2276",
  "rgb": {
    "r": 91,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 280.714,
    "s": 55.263,
    "l": 29.804
  },
  "oklch": {
    "l": 0.378,
    "c": 0.1418,
    "h": 312.8
  },
  "luminance": 0.04676
}

Semantic roles & 50–950 ramp

primary
#5B2276
secondary
#69A94B
accent
#DF4979
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B2276

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

Preview Lab → · Contrast checker → · Palette generator →

#5B2276 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva