#5B2599#5B2599

#5B2599 is a dark, vivid violet. Relative luminance 0.058; OKLCH L 41.0% C 0.176 H 299.6°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#5B2599
RGBrgb(91, 37, 153)
HSLhsl(268, 61%, 37%)
HSVhsv(268, 76%, 60%)
CMYKcmyk(40.5%, 75.8%, 0%, 40%)
CIE-LABlab(29.02, 47.54, -53.51)
CIE-LCHlch(29.02, 71.58, 311.62°)
OKLaboklab(40.95% 0.087 -0.1529)
OKLCHoklch(40.95% 0.176 299.6)
XYZxyz(10.7243, 5.8471, 30.6944)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2599 #639925
analogous
#252999 #5B2599 #952599
triadic
#5B2599 #995B25 #25995B
tetradic
#5B2599 #992529 #639925 #259995
square
#5B2599 #992529 #639925 #259995
split-complementary
#5B2599 #999525 #299925
monochromatic
#200D36 #3E1968 #5B2599 #7831CA #9860D9

Accessibility & contrast

On white

9.68
#5B2599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#5B2599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2599
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2599#FFFFFF#000000##FFFFFF
##5B25991.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b2599;
/* rgb */ color: rgb(91, 37, 153);
/* oklch */ color: oklch(41.0% 0.176 299.6);
Tailwind
colors: {
  custom: {
    50: '#8f65b8',
    500: '#5b2599',
    950: '#000000',
  },
}
SCSS
$custom: #5b2599;
$custom-light: #8f65b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2599",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 153
  },
  "hsl": {
    "h": 267.931,
    "s": 61.053,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40952,
    "c": 0.17592,
    "h": 299.6
  },
  "luminance": 0.05847
}

Semantic roles & 50–950 ramp

primary
#5B2599
secondary
#90BE5C
accent
#E44499
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0611
muted
#7E7A80

Preview Lab

Preview with #5B2599

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

Preview Lab → · Contrast checker → · Palette generator →

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