#5A166E#5A166E

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

Color values

HEX#5A166E
RGBrgb(90, 22, 110)
HSLhsl(286, 67%, 26%)
HSVhsv(286, 80%, 43%)
CMYKcmyk(18.2%, 80%, 0%, 56.9%)
CIE-LABlab(23.25, 43.53, -35.88)
CIE-LCHlch(23.25, 56.41, 320.50°)
OKLaboklab(35.77% 0.1088 -0.101)
OKLCHoklch(35.77% 0.148 317.1)
XYZxyz(7.3174, 3.8736, 15.1111)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A166E #2A6E16
analogous
#2E166E #5A166E #6E1656
triadic
#5A166E #6E5A16 #166E5A
tetradic
#5A166E #6E2E16 #2A6E16 #16566E
square
#5A166E #6E2E16 #2A6E16 #16566E
split-complementary
#5A166E #566E16 #166E2E
monochromatic
#15051A #300C3B #5A166E #8420A1 #AD2AD4

Accessibility & contrast

On white

11.83
#5A166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A166E
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A166E#FFFFFF#000000##FFFFFF
##5A166E1.0011.831.7711.83
#FFFFFF11.831.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#18396C
Tritanopia (blue-blind)
#592941
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a166e;
/* rgb */ color: rgb(90, 22, 110);
/* oklch */ color: oklch(35.8% 0.148 317.1);
Tailwind
colors: {
  custom: {
    50: '#8c5c98',
    500: '#5a166e',
    950: '#000000',
  },
}
SCSS
$custom: #5a166e;
$custom-light: #8c5c98;
$custom-dark: #000000;
JSON
{
  "hex": "#5a166e",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 286.364,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.35773,
    "c": 0.14849,
    "h": 317.1
  },
  "luminance": 0.03873
}

Semantic roles & 50–950 ramp

primary
#5A166E
secondary
#53A43C
accent
#EA3E65
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #5A166E

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

Preview Lab → · Contrast checker → · Palette generator →

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