#5A108D#5A108D

#5A108D is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.9% C 0.183 H 305.1°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5A108D
RGBrgb(90, 16, 141)
HSLhsl(276, 80%, 31%)
HSVhsv(276, 89%, 55%)
CMYKcmyk(36.2%, 88.7%, 0%, 44.7%)
CIE-LABlab(25.16, 52.23, -52.43)
CIE-LCHlch(25.16, 74.00, 314.89°)
OKLaboklab(37.91% 0.1052 -0.1496)
OKLCHoklch(37.91% 0.183 305.1)
XYZxyz(9.2084, 4.4674, 25.5713)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A108D #438D10
analogous
#1B108D #5A108D #8D1081
triadic
#5A108D #8D5A10 #108D5A
tetradic
#5A108D #8D1B10 #438D10 #10818D
square
#5A108D #8D1B10 #438D10 #10818D
split-complementary
#5A108D #818D10 #108D1B
monochromatic
#14041F #370A56 #5A108D #7D16C4 #9D30E7

Accessibility & contrast

On white

11.09
#5A108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A108D
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A108D#FFFFFF#000000##FFFFFF
##5A108D1.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#503552
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a108d;
/* rgb */ color: rgb(90, 16, 141);
/* oklch */ color: oklch(37.9% 0.183 305.1);
Tailwind
colors: {
  custom: {
    50: '#8f5caf',
    500: '#5a108d',
    950: '#000000',
  },
}
SCSS
$custom: #5a108d;
$custom-light: #8f5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a108d",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 275.52,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37906,
    "c": 0.18288,
    "h": 305.1
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#5A108D
secondary
#70C237
accent
#F63282
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0410
muted
#7E797F

Preview Lab

Preview with #5A108D

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

Preview Lab → · Contrast checker → · Palette generator →

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