#5B2399#5B2399

#5B2399 is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.7% C 0.178 H 299.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#5B2399
RGBrgb(91, 35, 153)
HSLhsl(268, 63%, 37%)
HSVhsv(268, 77%, 60%)
CMYKcmyk(40.5%, 77.1%, 0%, 40%)
CIE-LABlab(28.71, 48.44, -54.02)
CIE-LCHlch(28.71, 72.56, 311.88°)
OKLaboklab(40.73% 0.0888 -0.1544)
OKLCHoklch(40.73% 0.178 299.9)
XYZxyz(10.6637, 5.7260, 30.6742)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2399 #619923
analogous
#232699 #5B2399 #962399
triadic
#5B2399 #995B23 #23995B
tetradic
#5B2399 #992326 #619923 #239996
square
#5B2399 #992326 #619923 #239996
split-complementary
#5B2399 #999623 #269923
monochromatic
#200C35 #3D1867 #5B2399 #792ECB #985DDA

Accessibility & contrast

On white

9.79
#5B2399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#5B2399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2399
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2399#FFFFFF#000000##FFFFFF
##5B23991.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00439C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#4C425D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #5b2399;
/* rgb */ color: rgb(91, 35, 153);
/* oklch */ color: oklch(40.7% 0.178 299.9);
Tailwind
colors: {
  custom: {
    50: '#9064b8',
    500: '#5b2399',
    950: '#000000',
  },
}
SCSS
$custom: #5b2399;
$custom-light: #9064b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2399",
  "rgb": {
    "r": 91,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 268.475,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40733,
    "c": 0.1781,
    "h": 299.9
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#5B2399
secondary
#8EBE59
accent
#E64298
background
#F9F6FB
surface
#F2EBF6
border
#CCC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2399

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

Preview Lab → · Contrast checker → · Palette generator →

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