#5B2D8D#5B2D8D

#5B2D8D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 41.0% C 0.152 H 302.0°. Best body text is #FFFFFF at 9.52:1 contrast (WCAG AA passes).

Color values

HEX#5B2D8D
RGBrgb(91, 45, 141)
HSLhsl(269, 52%, 36%)
HSVhsv(269, 68%, 55%)
CMYKcmyk(35.5%, 68.1%, 0%, 44.7%)
CIE-LABlab(29.47, 40.51, -45.40)
CIE-LCHlch(29.47, 60.84, 311.74°)
OKLaboklab(40.97% 0.0808 -0.1291)
OKLCHoklch(40.97% 0.152 302)
XYZxyz(10.0594, 6.0240, 25.8269)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2D8D #5F8D2D
analogous
#2D2F8D #5B2D8D #8B2D8D
triadic
#5B2D8D #8D5B2D #2D8D5B
tetradic
#5B2D8D #8D2D2F #5F8D2D #2D8D8B
square
#5B2D8D #8D2D2F #5F8D2D #2D8D8B
split-complementary
#5B2D8D #8D8B2D #2F8D2D
monochromatic
#1F0F30 #3D1E5F #5B2D8D #793CBB #9866CE

Accessibility & contrast

On white

9.52
#5B2D8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2D8D
9.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2D8D#FFFFFF#000000##FFFFFF
##5B2D8D1.009.522.209.52
#FFFFFF9.521.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#01458B
Tritanopia (blue-blind)
#514359
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b2d8d;
/* rgb */ color: rgb(91, 45, 141);
/* oklch */ color: oklch(41.0% 0.152 302.0);
Tailwind
colors: {
  custom: {
    50: '#8e69af',
    500: '#5b2d8d',
    950: '#000000',
  },
}
SCSS
$custom: #5b2d8d;
$custom-light: #8e69af;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2d8d",
  "rgb": {
    "r": 91,
    "g": 45,
    "b": 141
  },
  "hsl": {
    "h": 268.75,
    "s": 51.613,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40972,
    "c": 0.1523,
    "h": 302
  },
  "luminance": 0.06024
}

Semantic roles & 50–950 ramp

primary
#5B2D8D
secondary
#8DB561
accent
#DB4D97
background
#F9F6FA
surface
#F1EBF5
border
#CBC6CF
text
#0D0610
muted
#7E7A7F

Preview Lab

Preview with #5B2D8D

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

Preview Lab → · Contrast checker → · Palette generator →

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