#5A337A#5A337A

#5A337A is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.4% C 0.120 H 307.2°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#5A337A
RGBrgb(90, 51, 122)
HSLhsl(273, 41%, 34%)
HSVhsv(273, 58%, 48%)
CMYKcmyk(26.2%, 58.2%, 0%, 52.2%)
CIE-LABlab(29.28, 31.99, -33.87)
CIE-LCHlch(29.28, 46.59, 313.37°)
OKLaboklab(40.38% 0.0724 -0.0953)
OKLCHoklch(40.38% 0.12 307.2)
XYZxyz(8.9124, 5.9466, 19.0869)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A337A #537A33
analogous
#37337A #5A337A #7A3377
triadic
#5A337A #7A5A33 #337A5A
tetradic
#5A337A #7A3733 #537A33 #33777A
square
#5A337A #7A3733 #537A33 #33777A
split-complementary
#5A337A #777A33 #337A37
monochromatic
#1A0F24 #3A214F #5A337A #7A45A5 #9868C0

Accessibility & contrast

On white

9.59
#5A337A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#5A337A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A337A
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A337A#FFFFFF#000000##FFFFFF
##5A337A1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A447C
Deuteranopia (green-blind)
#284578
Tritanopia (blue-blind)
#554051
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #5a337a;
/* rgb */ color: rgb(90, 51, 122);
/* oklch */ color: oklch(40.4% 0.120 307.2);
Tailwind
colors: {
  custom: {
    50: '#8b6ca1',
    500: '#5a337a',
    950: '#000000',
  },
}
SCSS
$custom: #5a337a;
$custom-light: #8b6ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a337a",
  "rgb": {
    "r": 90,
    "g": 51,
    "b": 122
  },
  "hsl": {
    "h": 272.958,
    "s": 41.04,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40384,
    "c": 0.11967,
    "h": 307.2
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#5A337A
secondary
#81A861
accent
#D1578E
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5A337A

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

Preview Lab → · Contrast checker → · Palette generator →

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