#5B2597#5B2597

#5B2597 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.174 H 300.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#5B2597
RGBrgb(91, 37, 151)
HSLhsl(268, 61%, 37%)
HSVhsv(268, 75%, 59%)
CMYKcmyk(39.7%, 75.5%, 0%, 40.8%)
CIE-LABlab(28.85, 47.03, -52.56)
CIE-LCHlch(28.85, 70.53, 311.82°)
OKLaboklab(40.78% 0.0875 -0.1501)
OKLCHoklch(40.78% 0.174 300.2)
XYZxyz(10.5605, 5.7815, 29.8317)
Luminance0.0578 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2597 #619725
analogous
#252897 #5B2597 #942597
triadic
#5B2597 #975B25 #25975B
tetradic
#5B2597 #972528 #619725 #259794
square
#5B2597 #972528 #619725 #259794
split-complementary
#5B2597 #979425 #289725
monochromatic
#200D35 #3D1966 #5B2597 #7931C8 #985FD8

Accessibility & contrast

On white

9.74
#5B2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#5B2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2597
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2597#FFFFFF#000000##FFFFFF
##5B25971.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#4D425C
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2597;
/* rgb */ color: rgb(91, 37, 151);
/* oklch */ color: oklch(40.8% 0.174 300.2);
Tailwind
colors: {
  custom: {
    50: '#8f65b6',
    500: '#5b2597',
    950: '#000000',
  },
}
SCSS
$custom: #5b2597;
$custom-light: #8f65b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2597",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 268.421,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40781,
    "c": 0.17374,
    "h": 300.2
  },
  "luminance": 0.05782
}

Semantic roles & 50–950 ramp

primary
#5B2597
secondary
#8EBD5B
accent
#E44498
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2597

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

Preview Lab → · Contrast checker → · Palette generator →

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