#5A105A#5A105A

#5A105A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.8% C 0.137 H 328.1°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#5A105A
RGBrgb(90, 16, 90)
HSLhsl(300, 70%, 21%)
HSVhsv(300, 82%, 35%)
CMYKcmyk(0%, 82.2%, 0%, 64.7%)
CIE-LABlab(21.14, 41.68, -26.12)
CIE-LCHlch(21.14, 49.19, 327.93°)
OKLaboklab(33.84% 0.1164 -0.0724)
OKLCHoklch(33.84% 0.137 328.1)
XYZxyz(6.2471, 3.2829, 9.9755)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A105A #105A10
analogous
#35105A #5A105A #5A1035
triadic
#5A105A #5A5A10 #105A5A
tetradic
#5A105A #5A3510 #105A10 #10355A
square
#5A105A #5A3510 #105A10 #10355A
split-complementary
#5A105A #355A10 #105A35
monochromatic
#1A051A #260726 #5A105A #8E198E #C222C2

Accessibility & contrast

On white

12.68
#5A105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A105A
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A105A#FFFFFF#000000##FFFFFF
##5A105A1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#253658
Tritanopia (blue-blind)
#5D1C35
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a105a;
/* rgb */ color: rgb(90, 16, 90);
/* oklch */ color: oklch(33.8% 0.137 328.1);
Tailwind
colors: {
  custom: {
    50: '#8c5889',
    500: '#5a105a',
    950: '#000000',
  },
}
SCSS
$custom: #5a105a;
$custom-light: #8c5889;
$custom-dark: #000000;
JSON
{
  "hex": "#5a105a",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 300,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.33838,
    "c": 0.13706,
    "h": 328.1
  },
  "luminance": 0.03282
}

Semantic roles & 50–950 ramp

primary
#5A105A
secondary
#339333
accent
#ED3B3B
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A105A

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

Preview Lab → · Contrast checker → · Palette generator →

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