#5B2C8A#5B2C8A

#5B2C8A is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.150 H 303.2°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#5B2C8A
RGBrgb(91, 44, 138)
HSLhsl(270, 52%, 36%)
HSVhsv(270, 68%, 54%)
CMYKcmyk(34.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(29.06, 40.26, -44.22)
CIE-LCHlch(29.06, 59.80, 312.32°)
OKLaboklab(40.6% 0.0823 -0.1256)
OKLCHoklch(40.6% 0.15 303.2)
XYZxyz(9.8015, 5.8605, 24.6546)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2C8A #5B8A2C
analogous
#2C2C8A #5B2C8A #8A2C8A
triadic
#5B2C8A #8A5B2C #2C8A5B
tetradic
#5B2C8A #8A2C2C #5B8A2C #2C8A8A
square
#5B2C8A #8A2C2C #5B8A2C #2C8A8A
split-complementary
#5B2C8A #8A8A2C #2C8A2C
monochromatic
#1E0E2D #3C1D5C #5B2C8A #7A3BB8 #9863CD

Accessibility & contrast

On white

9.67
#5B2C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5B2C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2C8A
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2C8A#FFFFFF#000000##FFFFFF
##5B2C8A1.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448D
Deuteranopia (green-blind)
#074488
Tritanopia (blue-blind)
#524157
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2c8a;
/* rgb */ color: rgb(91, 44, 138);
/* oklch */ color: oklch(40.6% 0.150 303.2);
Tailwind
colors: {
  custom: {
    50: '#8d68ad',
    500: '#5b2c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2c8a;
$custom-light: #8d68ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2c8a",
  "rgb": {
    "r": 91,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 270,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.40603,
    "c": 0.15018,
    "h": 303.2
  },
  "luminance": 0.0586
}

Semantic roles & 50–950 ramp

primary
#5B2C8A
secondary
#89B45E
accent
#DB4D94
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5B2C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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