#5B2499#5B2499

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

Color values

HEX#5B2499
RGBrgb(91, 36, 153)
HSLhsl(268, 62%, 37%)
HSVhsv(268, 76%, 60%)
CMYKcmyk(40.5%, 76.5%, 0%, 40%)
CIE-LABlab(28.87, 47.99, -53.77)
CIE-LCHlch(28.87, 72.07, 311.75°)
OKLaboklab(40.84% 0.0879 -0.1536)
OKLCHoklch(40.84% 0.177 299.8)
XYZxyz(10.6936, 5.7857, 30.6842)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2499 #629924
analogous
#242899 #5B2499 #962499
triadic
#5B2499 #995B24 #24995B
tetradic
#5B2499 #992428 #629924 #249996
square
#5B2499 #992428 #629924 #249996
split-complementary
#5B2499 #999624 #289924
monochromatic
#200D36 #3E1867 #5B2499 #7830CB #985ED9

Accessibility & contrast

On white

9.73
#5B2499 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B2499
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2499#FFFFFF#000000##FFFFFF
##5B24991.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2499;
/* rgb */ color: rgb(91, 36, 153);
/* oklch */ color: oklch(40.8% 0.177 299.8);
Tailwind
colors: {
  custom: {
    50: '#8f65b8',
    500: '#5b2499',
    950: '#000000',
  },
}
SCSS
$custom: #5b2499;
$custom-light: #8f65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2499",
  "rgb": {
    "r": 91,
    "g": 36,
    "b": 153
  },
  "hsl": {
    "h": 268.205,
    "s": 61.905,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40841,
    "c": 0.17702,
    "h": 299.8
  },
  "luminance": 0.05786
}

Semantic roles & 50–950 ramp

primary
#5B2499
secondary
#8FBE5B
accent
#E54399
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2499

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

Preview Lab → · Contrast checker → · Palette generator →

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