#5A166C#5A166C

#5A166C is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.147 H 318.1°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#5A166C
RGBrgb(90, 22, 108)
HSLhsl(287, 66%, 25%)
HSVhsv(287, 80%, 42%)
CMYKcmyk(16.7%, 79.6%, 0%, 57.6%)
CIE-LABlab(23.10, 43.11, -34.82)
CIE-LCHlch(23.10, 55.41, 321.07°)
OKLaboklab(35.62% 0.1091 -0.0979)
OKLCHoklch(35.62% 0.147 318.1)
XYZxyz(7.2098, 3.8305, 14.5440)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A166C #286C16
analogous
#2F166C #5A166C #6C1653
triadic
#5A166C #6C5A16 #166C5A
tetradic
#5A166C #6C2F16 #286C16 #16536C
square
#5A166C #6C2F16 #286C16 #16536C
split-complementary
#5A166C #536C16 #166C2F
monochromatic
#150519 #300C39 #5A166C #84209F #AF2BD2

Accessibility & contrast

On white

11.89
#5A166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A166C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A166C
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A166C#FFFFFF#000000##FFFFFF
##5A166C1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#1A396A
Tritanopia (blue-blind)
#592840
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a166c;
/* rgb */ color: rgb(90, 22, 108);
/* oklch */ color: oklch(35.6% 0.147 318.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c97',
    500: '#5a166c',
    950: '#000000',
  },
}
SCSS
$custom: #5a166c;
$custom-light: #8c5c97;
$custom-dark: #000000;
JSON
{
  "hex": "#5a166c",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 287.442,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35624,
    "c": 0.1466,
    "h": 318.1
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#5A166C
secondary
#51A23C
accent
#E93F62
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A166C

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

Preview Lab → · Contrast checker → · Palette generator →

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