#5A167B#5A167B

#5A167B is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.161 H 311.4°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#5A167B
RGBrgb(90, 22, 123)
HSLhsl(280, 70%, 28%)
HSVhsv(280, 82%, 48%)
CMYKcmyk(26.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(24.25, 46.34, -42.59)
CIE-LCHlch(24.25, 62.94, 317.41°)
OKLaboklab(36.79% 0.1063 -0.1207)
OKLCHoklch(36.79% 0.161 311.4)
XYZxyz(8.0778, 4.1778, 19.1159)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A167B #377B16
analogous
#27167B #5A167B #7B1669
triadic
#5A167B #7B5A16 #167B5A
tetradic
#5A167B #7B2716 #377B16 #16697B
square
#5A167B #7B2716 #377B16 #16697B
split-complementary
#5A167B #697B16 #167B27
monochromatic
#13051A #340D47 #5A167B #801FAF #A331DA

Accessibility & contrast

On white

11.44
#5A167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A167B
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A167B#FFFFFF#000000##FFFFFF
##5A167B1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#003B79
Tritanopia (blue-blind)
#562F49
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a167b;
/* rgb */ color: rgb(90, 22, 123);
/* oklch */ color: oklch(36.8% 0.161 311.4);
Tailwind
colors: {
  custom: {
    50: '#8d5da2',
    500: '#5a167b',
    950: '#000000',
  },
}
SCSS
$custom: #5a167b;
$custom-light: #8d5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a167b",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 280.396,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36794,
    "c": 0.16088,
    "h": 311.4
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#5A167B
secondary
#62B03D
accent
#EC3B75
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A167B

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

Preview Lab → · Contrast checker → · Palette generator →

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