#5B2592#5B2592

#5B2592 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.168 H 301.8°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#5B2592
RGBrgb(91, 37, 146)
HSLhsl(270, 60%, 36%)
HSVhsv(270, 75%, 57%)
CMYKcmyk(37.7%, 74.7%, 0%, 42.7%)
CIE-LABlab(28.44, 45.77, -50.17)
CIE-LCHlch(28.44, 67.91, 312.38°)
OKLaboklab(40.36% 0.0886 -0.1431)
OKLCHoklch(40.36% 0.168 301.8)
XYZxyz(10.1630, 5.6226, 27.7384)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2592 #5C9225
analogous
#252592 #5B2592 #912592
triadic
#5B2592 #925B25 #25925B
tetradic
#5B2592 #922525 #5C9225 #259291
square
#5B2592 #922525 #5C9225 #259291
split-complementary
#5B2592 #929125 #259225
monochromatic
#1E0C30 #3D1961 #5B2592 #7931C3 #985CD6

Accessibility & contrast

On white

9.88
#5B2592 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#5B2592 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2592
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2592#FFFFFF#000000##FFFFFF
##5B25921.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#004390
Tritanopia (blue-blind)
#4F4059
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2592;
/* rgb */ color: rgb(91, 37, 146);
/* oklch */ color: oklch(40.4% 0.168 301.8);
Tailwind
colors: {
  custom: {
    50: '#8f65b3',
    500: '#5b2592',
    950: '#000000',
  },
}
SCSS
$custom: #5b2592;
$custom-light: #8f65b3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2592",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 146
  },
  "hsl": {
    "h": 269.725,
    "s": 59.563,
    "l": 35.882
  },
  "oklch": {
    "l": 0.40359,
    "c": 0.16827,
    "h": 301.8
  },
  "luminance": 0.05623
}

Semantic roles & 50–950 ramp

primary
#5B2592
secondary
#8ABA58
accent
#E34595
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2592

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

Preview Lab → · Contrast checker → · Palette generator →

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