#5A1062#5A1062

#5A1062 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.144 H 323.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#5A1062
RGBrgb(90, 16, 98)
HSLhsl(294, 72%, 22%)
HSVhsv(294, 84%, 38%)
CMYKcmyk(8.2%, 83.7%, 0%, 61.6%)
CIE-LABlab(21.68, 43.18, -30.57)
CIE-LCHlch(21.68, 52.90, 324.70°)
OKLaboklab(34.39% 0.1158 -0.0854)
OKLCHoklch(34.39% 0.144 323.6)
XYZxyz(6.6061, 3.4265, 11.8663)
Luminance0.0343 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1062 #186210
analogous
#311062 #5A1062 #621041
triadic
#5A1062 #625A10 #10625A
tetradic
#5A1062 #623110 #186210 #104162
square
#5A1062 #623110 #186210 #104162
split-complementary
#5A1062 #416210 #106231
monochromatic
#18041A #2A072D #5A1062 #8A1997 #BB21CB

Accessibility & contrast

On white

12.46
#5A1062 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5A1062 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1062
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1062#FFFFFF#000000##FFFFFF
##5A10621.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F64
Deuteranopia (green-blind)
#203760
Tritanopia (blue-blind)
#5C2139
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5a1062;
/* rgb */ color: rgb(90, 16, 98);
/* oklch */ color: oklch(34.4% 0.144 323.6);
Tailwind
colors: {
  custom: {
    50: '#8c598f',
    500: '#5a1062',
    950: '#000000',
  },
}
SCSS
$custom: #5a1062;
$custom-light: #8c598f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1062",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 98
  },
  "hsl": {
    "h": 294.146,
    "s": 71.93,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34388,
    "c": 0.14391,
    "h": 323.6
  },
  "luminance": 0.03426
}

Semantic roles & 50–950 ramp

primary
#5A1062
secondary
#3D9B33
accent
#EF394B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1062

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

Preview Lab → · Contrast checker → · Palette generator →

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