#5A166A#5A166A

#5A166A is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.145 H 319.1°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#5A166A
RGBrgb(90, 22, 106)
HSLhsl(289, 66%, 25%)
HSVhsv(289, 79%, 42%)
CMYKcmyk(15.1%, 79.2%, 0%, 58.4%)
CIE-LABlab(22.96, 42.69, -33.75)
CIE-LCHlch(22.96, 54.42, 321.67°)
OKLaboklab(35.48% 0.1094 -0.0948)
OKLCHoklch(35.48% 0.145 319.1)
XYZxyz(7.1045, 3.7884, 13.9899)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A166A #266A16
analogous
#30166A #5A166A #6A1650
triadic
#5A166A #6A5A16 #166A5A
tetradic
#5A166A #6A3016 #266A16 #16506A
square
#5A166A #6A3016 #266A16 #16506A
split-complementary
#5A166A #506A16 #166A30
monochromatic
#160519 #2F0B37 #5A166A #85219D #B02BCF

Accessibility & contrast

On white

11.95
#5A166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5A166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A166A
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A166A#FFFFFF#000000##FFFFFF
##5A166A1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#1C3968
Tritanopia (blue-blind)
#5A273F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a166a;
/* rgb */ color: rgb(90, 22, 106);
/* oklch */ color: oklch(35.5% 0.145 319.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c95',
    500: '#5a166a',
    950: '#000000',
  },
}
SCSS
$custom: #5a166a;
$custom-light: #8c5c95;
$custom-dark: #000000;
JSON
{
  "hex": "#5a166a",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 288.571,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35476,
    "c": 0.14473,
    "h": 319.1
  },
  "luminance": 0.03788
}

Semantic roles & 50–950 ramp

primary
#5A166A
secondary
#4FA03B
accent
#E93F5F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A166A

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

Preview Lab → · Contrast checker → · Palette generator →

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