#5A167D#5A167D

#5A167D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.163 H 310.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5A167D
RGBrgb(90, 22, 125)
HSLhsl(280, 70%, 29%)
HSVhsv(280, 82%, 49%)
CMYKcmyk(28%, 82.4%, 0%, 51%)
CIE-LABlab(24.41, 46.78, -43.60)
CIE-LCHlch(24.41, 63.95, 317.02°)
OKLaboklab(36.96% 0.1059 -0.1237)
OKLCHoklch(36.96% 0.163 310.6)
XYZxyz(8.2043, 4.2283, 19.7820)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A167D #397D16
analogous
#27167D #5A167D #7D166D
triadic
#5A167D #7D5A16 #167D5A
tetradic
#5A167D #7D2716 #397D16 #166D7D
square
#5A167D #7D2716 #397D16 #166D7D
split-complementary
#5A167D #6D7D16 #167D27
monochromatic
#13051A #350D49 #5A167D #7F1FB1 #A232DB

Accessibility & contrast

On white

11.38
#5A167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#5A167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A167D
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A167D#FFFFFF#000000##FFFFFF
##5A167D1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#55304A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a167d;
/* rgb */ color: rgb(90, 22, 125);
/* oklch */ color: oklch(37.0% 0.163 310.6);
Tailwind
colors: {
  custom: {
    50: '#8d5da3',
    500: '#5a167d',
    950: '#000000',
  },
}
SCSS
$custom: #5a167d;
$custom-light: #8d5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a167d",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 279.612,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36958,
    "c": 0.1628,
    "h": 310.6
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#5A167D
secondary
#65B23D
accent
#ED3B77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A167D

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

Preview Lab → · Contrast checker → · Palette generator →

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