#5B2162#5B2162

#5B2162 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.3% C 0.122 H 323.2°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#5B2162
RGBrgb(91, 33, 98)
HSLhsl(294, 50%, 26%)
HSVhsv(294, 66%, 38%)
CMYKcmyk(7.1%, 66.3%, 0%, 61.6%)
CIE-LABlab(24.30, 36.49, -26.38)
CIE-LCHlch(24.30, 45.02, 324.14°)
OKLaboklab(36.3% 0.0981 -0.0733)
OKLCHoklch(36.3% 0.122 323.2)
XYZxyz(7.0626, 4.1941, 11.9904)
Luminance0.0419 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2162 #286221
analogous
#3A2162 #5B2162 #622148
triadic
#5B2162 #625B21 #21625B
tetradic
#5B2162 #623A21 #286221 #214862
square
#5B2162 #623A21 #286221 #214862
split-complementary
#5B2162 #486221 #21623A
monochromatic
#150817 #301234 #5B2162 #863090 #B040BE

Accessibility & contrast

On white

11.42
#5B2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5B2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2162
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2162#FFFFFF#000000##FFFFFF
##5B21621.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#143564
Deuteranopia (green-blind)
#2B3C60
Tritanopia (blue-blind)
#5D2B3E
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5b2162;
/* rgb */ color: rgb(91, 33, 98);
/* oklch */ color: oklch(36.3% 0.122 323.2);
Tailwind
colors: {
  custom: {
    50: '#8c618f',
    500: '#5b2162',
    950: '#000000',
  },
}
SCSS
$custom: #5b2162;
$custom-light: #8c618f;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2162",
  "rgb": {
    "r": 91,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 293.538,
    "s": 49.618,
    "l": 25.686
  },
  "oklch": {
    "l": 0.36304,
    "c": 0.12248,
    "h": 323.2
  },
  "luminance": 0.04194
}

Semantic roles & 50–950 ramp

primary
#5B2162
secondary
#519649
accent
#D94F5E
background
#F8F5F8
surface
#F0EAF0
border
#CBC6CB
text
#0C050C
muted
#7D797D

Preview Lab

Preview with #5B2162

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

Preview Lab → · Contrast checker → · Palette generator →

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