#5B3573#5B3573

#5B3573 is a dark, moderate violet. Relative luminance 0.060; OKLCH L 40.4% C 0.108 H 310.8°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#5B3573
RGBrgb(91, 53, 115)
HSLhsl(277, 37%, 33%)
HSVhsv(277, 54%, 45%)
CMYKcmyk(20.9%, 53.9%, 0%, 54.9%)
CIE-LABlab(29.43, 29.34, -29.19)
CIE-LCHlch(29.43, 41.39, 315.15°)
OKLaboklab(40.39% 0.0703 -0.0816)
OKLCHoklch(40.39% 0.108 310.8)
XYZxyz(8.6814, 6.0083, 16.9187)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3573 #4D7335
analogous
#3C3573 #5B3573 #73356C
triadic
#5B3573 #735B35 #35735B
tetradic
#5B3573 #733C35 #4D7335 #356C73
square
#5B3573 #733C35 #4D7335 #356C73
split-complementary
#5B3573 #6C7335 #35733C
monochromatic
#190E1F #3A2249 #5B3573 #7C489D #9A69BA

Accessibility & contrast

On white

9.54
#5B3573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#5B3573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3573
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3573#FFFFFF#000000##FFFFFF
##5B35731.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254475
Deuteranopia (green-blind)
#304671
Tritanopia (blue-blind)
#583F4F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5b3573;
/* rgb */ color: rgb(91, 53, 115);
/* oklch */ color: oklch(40.4% 0.108 310.8);
Tailwind
colors: {
  custom: {
    50: '#8b6e9b',
    500: '#5b3573',
    950: '#000000',
  },
}
SCSS
$custom: #5b3573;
$custom-light: #8b6e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3573",
  "rgb": {
    "r": 91,
    "g": 53,
    "b": 115
  },
  "hsl": {
    "h": 276.774,
    "s": 36.905,
    "l": 32.941
  },
  "oklch": {
    "l": 0.4039,
    "c": 0.10773,
    "h": 310.8
  },
  "luminance": 0.06008
}

Semantic roles & 50–950 ramp

primary
#5B3573
secondary
#7BA262
accent
#CD5B87
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070E
muted
#7D7A7E

Preview Lab

Preview with #5B3573

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

Preview Lab → · Contrast checker → · Palette generator →

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