#5A1665#5A1665

#5A1665 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.140 H 321.7°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#5A1665
RGBrgb(90, 22, 101)
HSLhsl(292, 64%, 24%)
HSVhsv(292, 78%, 40%)
CMYKcmyk(10.9%, 78.2%, 0%, 60.4%)
CIE-LABlab(22.61, 41.67, -31.05)
CIE-LCHlch(22.61, 51.97, 323.31°)
OKLaboklab(35.12% 0.1099 -0.0869)
OKLCHoklch(35.12% 0.14 321.7)
XYZxyz(6.8521, 3.6874, 12.6602)
Luminance0.0369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1665 #216516
analogous
#331665 #5A1665 #651649
triadic
#5A1665 #655A16 #16655A
tetradic
#5A1665 #653316 #216516 #164965
square
#5A1665 #653316 #216516 #164965
split-complementary
#5A1665 #496516 #166533
monochromatic
#160519 #2D0B33 #5A1665 #872197 #B42CCA

Accessibility & contrast

On white

12.09
#5A1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5A1665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1665
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1665#FFFFFF#000000##FFFFFF
##5A16651.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.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: #5a1665;
/* rgb */ color: rgb(90, 22, 101);
/* oklch */ color: oklch(35.1% 0.140 321.7);
Tailwind
colors: {
  custom: {
    50: '#8c5b91',
    500: '#5a1665',
    950: '#000000',
  },
}
SCSS
$custom: #5a1665;
$custom-light: #8c5b91;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1665",
  "rgb": {
    "r": 90,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 291.646,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35116,
    "c": 0.14007,
    "h": 321.7
  },
  "luminance": 0.03687
}

Semantic roles & 50–950 ramp

primary
#5A1665
secondary
#499C3B
accent
#E74158
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1665

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

Preview Lab → · Contrast checker → · Palette generator →

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