#5A106A#5A106A

#5A106A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.151 H 319.5°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#5A106A
RGBrgb(90, 16, 106)
HSLhsl(289, 74%, 24%)
HSVhsv(289, 85%, 42%)
CMYKcmyk(15.1%, 84.9%, 0%, 58.4%)
CIE-LABlab(22.25, 44.74, -34.89)
CIE-LCHlch(22.25, 56.74, 322.05°)
OKLaboklab(34.98% 0.1148 -0.0981)
OKLCHoklch(34.98% 0.151 319.5)
XYZxyz(7.0029, 3.5852, 13.9560)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A106A #206A10
analogous
#2D106A #5A106A #6A104D
triadic
#5A106A #6A5A10 #106A5A
tetradic
#5A106A #6A2D10 #206A10 #104D6A
square
#5A106A #6A2D10 #206A10 #104D6A
split-complementary
#5A106A #4D6A10 #106A2D
monochromatic
#17041B #2D0835 #5A106A #87189F #B420D4

Accessibility & contrast

On white

12.23
#5A106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A106A
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A106A#FFFFFF#000000##FFFFFF
##5A106A1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#183868
Tritanopia (blue-blind)
#5A253E
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a106a;
/* rgb */ color: rgb(90, 16, 106);
/* oklch */ color: oklch(35.0% 0.151 319.5);
Tailwind
colors: {
  custom: {
    50: '#8c5995',
    500: '#5a106a',
    950: '#000000',
  },
}
SCSS
$custom: #5a106a;
$custom-light: #8c5995;
$custom-dark: #000000;
JSON
{
  "hex": "#5a106a",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 289.333,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.34975,
    "c": 0.15095,
    "h": 319.5
  },
  "luminance": 0.03585
}

Semantic roles & 50–950 ramp

primary
#5A106A
secondary
#47A234
accent
#F03758
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A106A

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

Preview Lab → · Contrast checker → · Palette generator →

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