#5A167C#5A167C

#5A167C is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.162 H 311.0°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#5A167C
RGBrgb(90, 22, 124)
HSLhsl(280, 70%, 29%)
HSVhsv(280, 82%, 49%)
CMYKcmyk(27.4%, 82.3%, 0%, 51.4%)
CIE-LABlab(24.33, 46.56, -43.10)
CIE-LCHlch(24.33, 63.44, 317.21°)
OKLaboklab(36.88% 0.1061 -0.1222)
OKLCHoklch(36.88% 0.162 311)
XYZxyz(8.1407, 4.2029, 19.4473)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A167C #387C16
analogous
#27167C #5A167C #7C166B
triadic
#5A167C #7C5A16 #167C5A
tetradic
#5A167C #7C2716 #387C16 #166B7C
square
#5A167C #7C2716 #387C16 #166B7C
split-complementary
#5A167C #6B7C16 #167C27
monochromatic
#13051A #340D48 #5A167C #801FB0 #A232DB

Accessibility & contrast

On white

11.41
#5A167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A167C
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A167C#FFFFFF#000000##FFFFFF
##5A167C1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#003B7A
Tritanopia (blue-blind)
#553049
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a167c;
/* rgb */ color: rgb(90, 22, 124);
/* oklch */ color: oklch(36.9% 0.162 311.0);
Tailwind
colors: {
  custom: {
    50: '#8d5da3',
    500: '#5a167c',
    950: '#000000',
  },
}
SCSS
$custom: #5a167c;
$custom-light: #8d5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a167c",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 280,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36876,
    "c": 0.16184,
    "h": 311
  },
  "luminance": 0.04203
}

Semantic roles & 50–950 ramp

primary
#5A167C
secondary
#64B13D
accent
#ED3B76
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5A167C

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

Preview Lab → · Contrast checker → · Palette generator →

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