#5A1652#5A1652

#5A1652 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 33.9% C 0.123 H 333.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#5A1652
RGBrgb(90, 22, 82)
HSLhsl(307, 61%, 22%)
HSVhsv(307, 76%, 35%)
CMYKcmyk(0%, 75.6%, 8.9%, 64.7%)
CIE-LABlab(21.42, 38.08, -20.32)
CIE-LCHlch(21.42, 43.16, 331.91°)
OKLaboklab(33.88% 0.1099 -0.0557)
OKLCHoklch(33.88% 0.123 333.1)
XYZxyz(6.0264, 3.3572, 8.3116)
Luminance0.0336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1652 #165A1E
analogous
#40165A #5A1652 #5A1630
triadic
#5A1652 #525A16 #16525A
tetradic
#5A1652 #5A4016 #165A1E #16305A
square
#5A1652 #5A4016 #165A1E #16305A
split-complementary
#5A1652 #305A16 #165A40
monochromatic
#190616 #290A25 #5A1652 #8B227F #BC2EAC

Accessibility & contrast

On white

12.56
#5A1652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5A1652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1652
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1652#FFFFFF#000000##FFFFFF
##5A16521.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#2C3750
Tritanopia (blue-blind)
#5E1C32
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a1652;
/* rgb */ color: rgb(90, 22, 82);
/* oklch */ color: oklch(33.9% 0.123 333.1);
Tailwind
colors: {
  custom: {
    50: '#8b5a83',
    500: '#5a1652',
    950: '#000000',
  },
}
SCSS
$custom: #5a1652;
$custom-light: #8b5a83;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1652",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 307.059,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33881,
    "c": 0.12319,
    "h": 333.1
  },
  "luminance": 0.03357
}

Semantic roles & 50–950 ramp

primary
#5A1652
secondary
#3B9145
accent
#E45744
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1652

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

Preview Lab → · Contrast checker → · Palette generator →

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