#5A165C#5A165C

#5A165C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.132 H 326.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#5A165C
RGBrgb(90, 22, 92)
HSLhsl(298, 61%, 22%)
HSVhsv(298, 76%, 36%)
CMYKcmyk(2.2%, 76.1%, 0%, 63.9%)
CIE-LABlab(22.02, 39.91, -26.06)
CIE-LCHlch(22.02, 47.67, 326.86°)
OKLaboklab(34.5% 0.1103 -0.0723)
OKLCHoklch(34.5% 0.132 326.7)
XYZxyz(6.4350, 3.5206, 10.4638)
Luminance0.0352 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A165C #185C16
analogous
#37165C #5A165C #5C163B
triadic
#5A165C #5C5A16 #165C5A
tetradic
#5A165C #5C3716 #185C16 #163B5C
square
#5A165C #5C3716 #185C16 #163B5C
split-complementary
#5A165C #3B5C16 #165C37
monochromatic
#180619 #2A0A2B #5A165C #8A228D #BB2EBF

Accessibility & contrast

On white

12.32
#5A165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5A165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A165C
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A165C#FFFFFF#000000##FFFFFF
##5A165C1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072F5E
Deuteranopia (green-blind)
#27385A
Tritanopia (blue-blind)
#5D2137
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a165c;
/* rgb */ color: rgb(90, 22, 92);
/* oklch */ color: oklch(34.5% 0.132 326.7);
Tailwind
colors: {
  custom: {
    50: '#8b5b8a',
    500: '#5a165c',
    950: '#000000',
  },
}
SCSS
$custom: #5a165c;
$custom-light: #8b5b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a165c",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 298.286,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34504,
    "c": 0.13187,
    "h": 326.7
  },
  "luminance": 0.0352
}

Semantic roles & 50–950 ramp

primary
#5A165C
secondary
#3D933B
accent
#E54348
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A165C

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

Preview Lab → · Contrast checker → · Palette generator →

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