#5A165D#5A165D

#5A165D is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.133 H 326.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#5A165D
RGBrgb(90, 22, 93)
HSLhsl(297, 62%, 23%)
HSVhsv(297, 76%, 36%)
CMYKcmyk(3.2%, 76.3%, 0%, 63.5%)
CIE-LABlab(22.08, 40.10, -26.62)
CIE-LCHlch(22.08, 48.13, 326.42°)
OKLaboklab(34.57% 0.1103 -0.0739)
OKLCHoklch(34.57% 0.133 326.2)
XYZxyz(6.4790, 3.5382, 10.6955)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A165D #195D16
analogous
#37165D #5A165D #5D163C
triadic
#5A165D #5D5A16 #165D5A
tetradic
#5A165D #5D3716 #195D16 #163C5D
square
#5A165D #5D3716 #195D16 #163C5D
split-complementary
#5A165D #3C5D16 #165D37
monochromatic
#180619 #2A0A2C #5A165D #8A228E #BA2DC0

Accessibility & contrast

On white

12.30
#5A165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A165D
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A165D#FFFFFF#000000##FFFFFF
##5A165D1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052F5F
Deuteranopia (green-blind)
#26385B
Tritanopia (blue-blind)
#5C2238
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a165d;
/* rgb */ color: rgb(90, 22, 93);
/* oklch */ color: oklch(34.6% 0.133 326.2);
Tailwind
colors: {
  custom: {
    50: '#8b5b8b',
    500: '#5a165d',
    950: '#000000',
  },
}
SCSS
$custom: #5a165d;
$custom-light: #8b5b8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a165d",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 297.465,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.3457,
    "c": 0.13277,
    "h": 326.2
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#5A165D
secondary
#3E943B
accent
#E5434A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A165D

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

Preview Lab → · Contrast checker → · Palette generator →

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