#5A165E#5A165E

#5A165E is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.6% C 0.134 H 325.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5A165E
RGBrgb(90, 22, 94)
HSLhsl(297, 62%, 23%)
HSVhsv(297, 77%, 37%)
CMYKcmyk(4.3%, 76.6%, 0%, 63.1%)
CIE-LABlab(22.15, 40.29, -27.18)
CIE-LCHlch(22.15, 48.61, 326.00°)
OKLaboklab(34.64% 0.1103 -0.0756)
OKLCHoklch(34.64% 0.134 325.6)
XYZxyz(6.5236, 3.5561, 10.9303)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A165E #1A5E16
analogous
#36165E #5A165E #5E163E
triadic
#5A165E #5E5A16 #165E5A
tetradic
#5A165E #5E3616 #1A5E16 #163E5E
square
#5A165E #5E3616 #1A5E16 #163E5E
split-complementary
#5A165E #3E5E16 #165E36
monochromatic
#180619 #2B0A2C #5A165E #892290 #B92DC1

Accessibility & contrast

On white

12.27
#5A165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A165E
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A165E#FFFFFF#000000##FFFFFF
##5A165E1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#043060
Deuteranopia (green-blind)
#26385C
Tritanopia (blue-blind)
#5C2238
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a165e;
/* rgb */ color: rgb(90, 22, 94);
/* oklch */ color: oklch(34.6% 0.134 325.6);
Tailwind
colors: {
  custom: {
    50: '#8b5b8c',
    500: '#5a165e',
    950: '#000000',
  },
}
SCSS
$custom: #5a165e;
$custom-light: #8b5b8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a165e",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 296.667,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.34636,
    "c": 0.13367,
    "h": 325.6
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#5A165E
secondary
#40953B
accent
#E5434C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A165E

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

Preview Lab → · Contrast checker → · Palette generator →

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