#5A1565#5A1565

#5A1565 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.141 H 321.7°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#5A1565
RGBrgb(90, 21, 101)
HSLhsl(292, 66%, 24%)
HSVhsv(292, 79%, 40%)
CMYKcmyk(10.9%, 79.2%, 0%, 60.4%)
CIE-LABlab(22.48, 42.05, -31.26)
CIE-LCHlch(22.48, 52.39, 323.37°)
OKLaboklab(35.02% 0.1109 -0.0875)
OKLCHoklch(35.02% 0.141 321.7)
XYZxyz(6.8333, 3.6500, 12.6540)
Luminance0.0365 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1565 #206515
analogous
#321565 #5A1565 #651548
triadic
#5A1565 #655A15 #15655A
tetradic
#5A1565 #653215 #206515 #154865
square
#5A1565 #653215 #206515 #154865
split-complementary
#5A1565 #486515 #156532
monochromatic
#170519 #2D0A32 #5A1565 #872098 #B42ACA

Accessibility & contrast

On white

12.14
#5A1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#5A1565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1565
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1565#FFFFFF#000000##FFFFFF
##5A15651.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#203863
Tritanopia (blue-blind)
#5B253C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1565;
/* rgb */ color: rgb(90, 21, 101);
/* oklch */ color: oklch(35.0% 0.141 321.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b91',
    500: '#5a1565',
    950: '#000000',
  },
}
SCSS
$custom: #5a1565;
$custom-light: #8c5b91;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1565",
  "rgb": {
    "r": 90,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 291.75,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.35023,
    "c": 0.14124,
    "h": 321.7
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#5A1565
secondary
#479C3A
accent
#E93F57
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1565

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

Preview Lab → · Contrast checker → · Palette generator →

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