#5B2476#5B2476

#5B2476 is a dark, vivid purple. Relative luminance 0.048; OKLCH L 38.0% C 0.139 H 312.5°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#5B2476
RGBrgb(91, 36, 118)
HSLhsl(280, 53%, 30%)
HSVhsv(280, 69%, 46%)
CMYKcmyk(22.9%, 69.5%, 0%, 53.7%)
CIE-LABlab(26.14, 39.43, -36.35)
CIE-LCHlch(26.14, 53.63, 317.33°)
OKLaboklab(38.05% 0.0939 -0.1025)
OKLCHoklch(38.05% 0.139 312.5)
XYZxyz(8.2147, 4.7941, 17.6287)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2476 #3F7624
analogous
#322476 #5B2476 #762468
triadic
#5B2476 #765B24 #24765B
tetradic
#5B2476 #763224 #3F7624 #246876
square
#5B2476 #763224 #3F7624 #246876
split-complementary
#5B2476 #687624 #247632
monochromatic
#130718 #371647 #5B2476 #7F32A5 #9F4CC8

Accessibility & contrast

On white

10.72
#5B2476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#5B2476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2476
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2476#FFFFFF#000000##FFFFFF
##5B24761.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#1D3F74
Tritanopia (blue-blind)
#58344A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #5b2476;
/* rgb */ color: rgb(91, 36, 118);
/* oklch */ color: oklch(38.0% 0.139 312.5);
Tailwind
colors: {
  custom: {
    50: '#8c639e',
    500: '#5b2476',
    950: '#000000',
  },
}
SCSS
$custom: #5b2476;
$custom-light: #8c639e;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2476",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 118
  },
  "hsl": {
    "h": 280.244,
    "s": 53.247,
    "l": 30.196
  },
  "oklch": {
    "l": 0.38049,
    "c": 0.13897,
    "h": 312.5
  },
  "luminance": 0.04794
}

Semantic roles & 50–950 ramp

primary
#5B2476
secondary
#6BA94D
accent
#DD4B7B
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C050E
muted
#7D7A7E

Preview Lab

Preview with #5B2476

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

Preview Lab → · Contrast checker → · Palette generator →

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