#5B2E8A#5B2E8A

#5B2E8A is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.9% C 0.147 H 302.9°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#5B2E8A
RGBrgb(91, 46, 138)
HSLhsl(269, 50%, 36%)
HSVhsv(269, 67%, 54%)
CMYKcmyk(34.1%, 66.7%, 0%, 45.9%)
CIE-LABlab(29.45, 39.19, -43.59)
CIE-LCHlch(29.45, 58.62, 311.96°)
OKLaboklab(40.88% 0.0799 -0.1238)
OKLCHoklch(40.88% 0.147 302.9)
XYZxyz(9.8778, 6.0131, 24.6801)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2E8A #5D8A2E
analogous
#2E2F8A #5B2E8A #892E8A
triadic
#5B2E8A #8A5B2E #2E8A5B
tetradic
#5B2E8A #8A2E2F #5D8A2E #2E8A89
square
#5B2E8A #8A2E2F #5D8A2E #2E8A89
split-complementary
#5B2E8A #8A892E #2F8A2E
monochromatic
#1E0F2E #3D1F5C #5B2E8A #793DB8 #9866CC

Accessibility & contrast

On white

9.53
#5B2E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B2E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2E8A
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2E8A#FFFFFF#000000##FFFFFF
##5B2E8A1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#0D4588
Tritanopia (blue-blind)
#524258
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2e8a;
/* rgb */ color: rgb(91, 46, 138);
/* oklch */ color: oklch(40.9% 0.147 302.9);
Tailwind
colors: {
  custom: {
    50: '#8d6aad',
    500: '#5b2e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5b2e8a;
$custom-light: #8d6aad;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2e8a",
  "rgb": {
    "r": 91,
    "g": 46,
    "b": 138
  },
  "hsl": {
    "h": 269.348,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40882,
    "c": 0.14734,
    "h": 302.9
  },
  "luminance": 0.06013
}

Semantic roles & 50–950 ramp

primary
#5B2E8A
secondary
#8BB361
accent
#DA4E95
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0D0610
muted
#7D7A7F

Preview Lab

Preview with #5B2E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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