#5B2397#5B2397

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

Color values

HEX#5B2397
RGBrgb(91, 35, 151)
HSLhsl(269, 62%, 36%)
HSVhsv(269, 77%, 59%)
CMYKcmyk(39.7%, 76.8%, 0%, 40.8%)
CIE-LABlab(28.54, 47.93, -53.08)
CIE-LCHlch(28.54, 71.52, 312.08°)
OKLaboklab(40.56% 0.0893 -0.1516)
OKLCHoklch(40.56% 0.176 300.5)
XYZxyz(10.4999, 5.6605, 29.8116)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2397 #5F9723
analogous
#232597 #5B2397 #952397
triadic
#5B2397 #975B23 #23975B
tetradic
#5B2397 #972325 #5F9723 #239795
square
#5B2397 #972325 #5F9723 #239795
split-complementary
#5B2397 #979523 #259723
monochromatic
#1F0C34 #3D1765 #5B2397 #792FC9 #985BD9

Accessibility & contrast

On white

9.85
#5B2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#5B2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2397
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2397#FFFFFF#000000##FFFFFF
##5B23971.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439A
Deuteranopia (green-blind)
#004295
Tritanopia (blue-blind)
#4D415C
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #5b2397;
/* rgb */ color: rgb(91, 35, 151);
/* oklch */ color: oklch(40.6% 0.176 300.5);
Tailwind
colors: {
  custom: {
    50: '#8f64b6',
    500: '#5b2397',
    950: '#000000',
  },
}
SCSS
$custom: #5b2397;
$custom-light: #8f64b6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2397",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 268.966,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.40559,
    "c": 0.17597,
    "h": 300.5
  },
  "luminance": 0.05661
}

Semantic roles & 50–950 ramp

primary
#5B2397
secondary
#8DBE58
accent
#E54297
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2397

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

Preview Lab → · Contrast checker → · Palette generator →

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