#5B1672#5B1672

#5B1672 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.153 H 315.9°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#5B1672
RGBrgb(91, 22, 114)
HSLhsl(285, 68%, 27%)
HSVhsv(285, 81%, 45%)
CMYKcmyk(20.2%, 80.7%, 0%, 55.3%)
CIE-LABlab(23.71, 44.58, -37.70)
CIE-LCHlch(23.71, 58.38, 319.78°)
OKLaboklab(36.23% 0.1096 -0.1063)
OKLCHoklch(36.23% 0.153 315.9)
XYZxyz(7.6381, 4.0132, 16.2886)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B1672 #2D7216
analogous
#2D1672 #5B1672 #72165B
triadic
#5B1672 #725B16 #16725B
tetradic
#5B1672 #722D16 #2D7216 #165B72
square
#5B1672 #722D16 #2D7216 #165B72
split-complementary
#5B1672 #5B7216 #16722D
monochromatic
#14051A #320C3F #5B1672 #8420A5 #AC2CD6

Accessibility & contrast

On white

11.65
#5B1672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5B1672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B1672
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B1672#FFFFFF#000000##FFFFFF
##5B16721.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#143A70
Tritanopia (blue-blind)
#592B44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5b1672;
/* rgb */ color: rgb(91, 22, 114);
/* oklch */ color: oklch(36.2% 0.153 315.9);
Tailwind
colors: {
  custom: {
    50: '#8d5c9b',
    500: '#5b1672',
    950: '#000000',
  },
}
SCSS
$custom: #5b1672;
$custom-light: #8d5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b1672",
  "rgb": {
    "r": 91,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 285,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3623,
    "c": 0.15265,
    "h": 315.9
  },
  "luminance": 0.04013
}

Semantic roles & 50–950 ramp

primary
#5B1672
secondary
#57A83C
accent
#EB3D69
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5B1672

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

Preview Lab → · Contrast checker → · Palette generator →

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