#5A1072#5A1072

#5A1072 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.158 H 315.7°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5A1072
RGBrgb(90, 16, 114)
HSLhsl(285, 75%, 25%)
HSVhsv(285, 86%, 45%)
CMYKcmyk(21.1%, 86%, 0%, 55.3%)
CIE-LABlab(22.86, 46.37, -39.09)
CIE-LCHlch(22.86, 60.65, 319.87°)
OKLaboklab(35.6% 0.1132 -0.1104)
OKLCHoklch(35.6% 0.158 315.7)
XYZxyz(7.4385, 3.7594, 16.2501)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1072 #287210
analogous
#291072 #5A1072 #721059
triadic
#5A1072 #725A10 #10725A
tetradic
#5A1072 #722910 #287210 #105972
square
#5A1072 #722910 #287210 #105972
split-complementary
#5A1072 #597210 #107229
monochromatic
#15041B #30083C #5A1072 #8418A8 #AF1FDD

Accessibility & contrast

On white

11.99
#5A1072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A1072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1072
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1072#FFFFFF#000000##FFFFFF
##5A10721.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#0C3870
Tritanopia (blue-blind)
#582842
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1072;
/* rgb */ color: rgb(90, 16, 114);
/* oklch */ color: oklch(35.6% 0.158 315.7);
Tailwind
colors: {
  custom: {
    50: '#8d5a9b',
    500: '#5a1072',
    950: '#000000',
  },
}
SCSS
$custom: #5a1072;
$custom-light: #8d5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1072",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 285.306,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.35596,
    "c": 0.15811,
    "h": 315.7
  },
  "luminance": 0.03759
}

Semantic roles & 50–950 ramp

primary
#5A1072
secondary
#51A934
accent
#F23664
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1072

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

Preview Lab → · Contrast checker → · Palette generator →

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