#5A105E#5A105E

#5A105E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.140 H 325.8°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#5A105E
RGBrgb(90, 16, 94)
HSLhsl(297, 71%, 22%)
HSVhsv(297, 83%, 37%)
CMYKcmyk(4.3%, 83%, 0%, 63.1%)
CIE-LABlab(21.40, 42.42, -28.36)
CIE-LCHlch(21.40, 51.03, 326.23°)
OKLaboklab(34.11% 0.1162 -0.079)
OKLCHoklch(34.11% 0.14 325.8)
XYZxyz(6.4220, 3.3528, 10.8964)
Luminance0.0335 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A105E #145E10
analogous
#33105E #5A105E #5E103B
triadic
#5A105E #5E5A10 #105E5A
tetradic
#5A105E #5E3310 #145E10 #103B5E
square
#5A105E #5E3310 #145E10 #103B5E
split-complementary
#5A105E #3B5E10 #105E33
monochromatic
#19041A #28072A #5A105E #8C1992 #BE22C7

Accessibility & contrast

On white

12.57
#5A105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A105E
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A105E#FFFFFF#000000##FFFFFF
##5A105E1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E60
Deuteranopia (green-blind)
#23365C
Tritanopia (blue-blind)
#5C1E37
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a105e;
/* rgb */ color: rgb(90, 16, 94);
/* oklch */ color: oklch(34.1% 0.140 325.8);
Tailwind
colors: {
  custom: {
    50: '#8c598c',
    500: '#5a105e',
    950: '#000000',
  },
}
SCSS
$custom: #5a105e;
$custom-light: #8c598c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a105e",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 296.923,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.34108,
    "c": 0.14045,
    "h": 325.8
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#5A105E
secondary
#389733
accent
#EE3A43
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A105E

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

Preview Lab → · Contrast checker → · Palette generator →

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