#5B2B8A#5B2B8A

#5B2B8A is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.152 H 303.4°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#5B2B8A
RGBrgb(91, 43, 138)
HSLhsl(270, 52%, 35%)
HSVhsv(270, 69%, 54%)
CMYKcmyk(34.1%, 68.8%, 0%, 45.9%)
CIE-LABlab(28.87, 40.78, -44.52)
CIE-LCHlch(28.87, 60.37, 312.49°)
OKLaboklab(40.47% 0.0835 -0.1265)
OKLCHoklch(40.47% 0.152 303.4)
XYZxyz(9.7646, 5.7869, 24.6424)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2B8A #5A8A2B
analogous
#2C2B8A #5B2B8A #8A2B89
triadic
#5B2B8A #8A5B2B #2B8A5B
tetradic
#5B2B8A #8A2C2B #5A8A2B #2B898A
square
#5B2B8A #8A2C2B #5A8A2B #2B898A
split-complementary
#5B2B8A #898A2B #2B8A2C
monochromatic
#1D0E2D #3C1C5B #5B2B8A #7A3AB9 #9861CE

Accessibility & contrast

On white

9.73
#5B2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B2B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2B8A
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2B8A#FFFFFF#000000##FFFFFF
##5B2B8A1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#044488
Tritanopia (blue-blind)
#524057
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2b8a;
/* rgb */ color: rgb(91, 43, 138);
/* oklch */ color: oklch(40.5% 0.152 303.4);
Tailwind
colors: {
  custom: {
    50: '#8d68ad',
    500: '#5b2b8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2b8a;
$custom-light: #8d68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2b8a",
  "rgb": {
    "r": 91,
    "g": 43,
    "b": 138
  },
  "hsl": {
    "h": 270.316,
    "s": 52.486,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40467,
    "c": 0.15157,
    "h": 303.4
  },
  "luminance": 0.05787
}

Semantic roles & 50–950 ramp

primary
#5B2B8A
secondary
#88B45D
accent
#DC4C93
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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