#5A167A#5A167A

#5A167A is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.7% C 0.160 H 311.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#5A167A
RGBrgb(90, 22, 122)
HSLhsl(281, 69%, 28%)
HSVhsv(281, 82%, 48%)
CMYKcmyk(26.2%, 82%, 0%, 52.2%)
CIE-LABlab(24.17, 46.12, -42.09)
CIE-LCHlch(24.17, 62.43, 317.62°)
OKLaboklab(36.71% 0.1066 -0.1192)
OKLCHoklch(36.71% 0.16 311.8)
XYZxyz(8.0156, 4.1528, 18.7879)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A167A #367A16
analogous
#28167A #5A167A #7A1668
triadic
#5A167A #7A5A16 #167A5A
tetradic
#5A167A #7A2816 #367A16 #16687A
square
#5A167A #7A2816 #367A16 #16687A
split-complementary
#5A167A #687A16 #167A28
monochromatic
#13051A #340D46 #5A167A #801FAE #A431DA

Accessibility & contrast

On white

11.47
#5A167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A167A
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A167A#FFFFFF#000000##FFFFFF
##5A167A1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003B78
Tritanopia (blue-blind)
#562F48
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a167a;
/* rgb */ color: rgb(90, 22, 122);
/* oklch */ color: oklch(36.7% 0.160 311.8);
Tailwind
colors: {
  custom: {
    50: '#8d5ca1',
    500: '#5a167a',
    950: '#000000',
  },
}
SCSS
$custom: #5a167a;
$custom-light: #8d5ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a167a",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 280.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36713,
    "c": 0.15992,
    "h": 311.8
  },
  "luminance": 0.04153
}

Semantic roles & 50–950 ramp

primary
#5A167A
secondary
#61AF3D
accent
#EC3C74
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0D050F
muted
#7D797F

Preview Lab

Preview with #5A167A

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

Preview Lab → · Contrast checker → · Palette generator →

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