#5B2595#5B2595

#5B2595 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.172 H 300.8°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#5B2595
RGBrgb(91, 37, 149)
HSLhsl(269, 60%, 36%)
HSVhsv(269, 75%, 58%)
CMYKcmyk(38.9%, 75.2%, 0%, 41.6%)
CIE-LABlab(28.69, 46.53, -51.61)
CIE-LCHlch(28.69, 69.49, 312.04°)
OKLaboklab(40.61% 0.088 -0.1473)
OKLCHoklch(40.61% 0.172 300.8)
XYZxyz(10.3994, 5.7171, 28.9836)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2595 #5F9525
analogous
#252795 #5B2595 #932595
triadic
#5B2595 #955B25 #25955B
tetradic
#5B2595 #952527 #5F9525 #259593
square
#5B2595 #952527 #5F9525 #259593
split-complementary
#5B2595 #959325 #279525
monochromatic
#1F0D33 #3D1964 #5B2595 #7931C6 #985ED7

Accessibility & contrast

On white

9.80
#5B2595 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#5B2595 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2595
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2595#FFFFFF#000000##FFFFFF
##5B25951.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004398
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#4E415B
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2595;
/* rgb */ color: rgb(91, 37, 149);
/* oklch */ color: oklch(40.6% 0.172 300.8);
Tailwind
colors: {
  custom: {
    50: '#8f65b5',
    500: '#5b2595',
    950: '#000000',
  },
}
SCSS
$custom: #5b2595;
$custom-light: #8f65b5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2595",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 149
  },
  "hsl": {
    "h": 268.929,
    "s": 60.215,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40611,
    "c": 0.17155,
    "h": 300.8
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#5B2595
secondary
#8DBC5A
accent
#E34497
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2595

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

Preview Lab → · Contrast checker → · Palette generator →

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