#5A166F#5A166F

#5A166F is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.8% C 0.149 H 316.7°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#5A166F
RGBrgb(90, 22, 111)
HSLhsl(286, 67%, 26%)
HSVhsv(286, 80%, 44%)
CMYKcmyk(18.9%, 80.2%, 0%, 56.5%)
CIE-LABlab(23.32, 43.74, -36.40)
CIE-LCHlch(23.32, 56.91, 320.23°)
OKLaboklab(35.85% 0.1087 -0.1025)
OKLCHoklch(35.85% 0.149 316.7)
XYZxyz(7.3722, 3.8955, 15.3994)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A166F #2B6F16
analogous
#2D166F #5A166F #6F1657
triadic
#5A166F #6F5A16 #166F5A
tetradic
#5A166F #6F2D16 #2B6F16 #16576F
square
#5A166F #6F2D16 #2B6F16 #16576F
split-complementary
#5A166F #576F16 #166F2D
monochromatic
#15051A #310C3C #5A166F #8320A2 #AD2BD5

Accessibility & contrast

On white

11.80
#5A166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A166F
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A166F#FFFFFF#000000##FFFFFF
##5A166F1.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003471
Deuteranopia (green-blind)
#16396D
Tritanopia (blue-blind)
#592A42
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a166f;
/* rgb */ color: rgb(90, 22, 111);
/* oklch */ color: oklch(35.8% 0.149 316.7);
Tailwind
colors: {
  custom: {
    50: '#8c5c99',
    500: '#5a166f',
    950: '#000000',
  },
}
SCSS
$custom: #5a166f;
$custom-light: #8c5c99;
$custom-dark: #000000;
JSON
{
  "hex": "#5a166f",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 285.843,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.35849,
    "c": 0.14943,
    "h": 316.7
  },
  "luminance": 0.03895
}

Semantic roles & 50–950 ramp

primary
#5A166F
secondary
#55A53C
accent
#EA3E67
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A166F

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

Preview Lab → · Contrast checker → · Palette generator →

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