#5B2579#5B2579

#5B2579 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.4% C 0.141 H 311.0°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#5B2579
RGBrgb(91, 37, 121)
HSLhsl(279, 53%, 31%)
HSVhsv(279, 69%, 47%)
CMYKcmyk(24.8%, 69.4%, 0%, 52.5%)
CIE-LABlab(26.53, 39.64, -37.63)
CIE-LCHlch(26.53, 54.66, 316.49°)
OKLaboklab(38.4% 0.0924 -0.1062)
OKLCHoklch(38.4% 0.141 311)
XYZxyz(8.4265, 4.9280, 18.5927)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B2579 #437925
analogous
#312579 #5B2579 #79256D
triadic
#5B2579 #795B25 #25795B
tetradic
#5B2579 #793125 #437925 #256D79
square
#5B2579 #793125 #437925 #256D79
split-complementary
#5B2579 #6D7925 #257931
monochromatic
#15081B #38174A #5B2579 #7E33A8 #9E4FC9

Accessibility & contrast

On white

10.58
#5B2579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5B2579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B2579
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B2579#FFFFFF#000000##FFFFFF
##5B25791.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7C
Deuteranopia (green-blind)
#1B4077
Tritanopia (blue-blind)
#57364C
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5b2579;
/* rgb */ color: rgb(91, 37, 121);
/* oklch */ color: oklch(38.4% 0.141 311.0);
Tailwind
colors: {
  custom: {
    50: '#8c64a0',
    500: '#5b2579',
    950: '#000000',
  },
}
SCSS
$custom: #5b2579;
$custom-light: #8c64a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b2579",
  "rgb": {
    "r": 91,
    "g": 37,
    "b": 121
  },
  "hsl": {
    "h": 278.571,
    "s": 53.165,
    "l": 30.98
  },
  "oklch": {
    "l": 0.38395,
    "c": 0.14081,
    "h": 311
  },
  "luminance": 0.04928
}

Semantic roles & 50–950 ramp

primary
#5B2579
secondary
#70AB4E
accent
#DD4B7F
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C060F
muted
#7D7A7E

Preview Lab

Preview with #5B2579

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

Preview Lab → · Contrast checker → · Palette generator →

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