#5A1165#5A1165

#5A1165 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.146 H 322.0°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#5A1165
RGBrgb(90, 17, 101)
HSLhsl(292, 71%, 23%)
HSVhsv(292, 83%, 40%)
CMYKcmyk(10.9%, 83.2%, 0%, 60.4%)
CIE-LABlab(22.00, 43.44, -32.03)
CIE-LCHlch(22.00, 53.97, 323.60°)
OKLaboklab(34.68% 0.1146 -0.0897)
OKLCHoklch(34.68% 0.146 322)
XYZxyz(6.7656, 3.5145, 12.6314)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1165 #1C6511
analogous
#301165 #5A1165 #651146
triadic
#5A1165 #655A11 #11655A
tetradic
#5A1165 #653011 #1C6511 #114665
square
#5A1165 #653011 #1C6511 #114665
split-complementary
#5A1165 #466511 #116530
monochromatic
#17041A #2B0831 #5A1165 #891A99 #B723CE

Accessibility & contrast

On white

12.33
#5A1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1165
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1165#FFFFFF#000000##FFFFFF
##5A11651.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003067
Deuteranopia (green-blind)
#1E3763
Tritanopia (blue-blind)
#5B233B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1165;
/* rgb */ color: rgb(90, 17, 101);
/* oklch */ color: oklch(34.7% 0.146 322.0);
Tailwind
colors: {
  custom: {
    50: '#8c5991',
    500: '#5a1165',
    950: '#000000',
  },
}
SCSS
$custom: #5a1165;
$custom-light: #8c5991;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1165",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 292.143,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.34681,
    "c": 0.14555,
    "h": 322
  },
  "luminance": 0.03514
}

Semantic roles & 50–950 ramp

primary
#5A1165
secondary
#429D35
accent
#EE3A51
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1165

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

Preview Lab → · Contrast checker → · Palette generator →

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