#5A1986#5A1986

#5A1986 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.169 H 306.8°. Best body text is #FFFFFF at 10.95:1 contrast (WCAG AA passes).

Color values

HEX#5A1986
RGBrgb(90, 25, 134)
HSLhsl(276, 69%, 31%)
HSVhsv(276, 81%, 53%)
CMYKcmyk(32.8%, 81.3%, 0%, 47.5%)
CIE-LABlab(25.53, 47.74, -47.45)
CIE-LCHlch(25.53, 67.30, 315.17°)
OKLaboklab(37.98% 0.1011 -0.135)
OKLCHoklch(37.98% 0.169 306.8)
XYZxyz(8.8662, 4.5903, 22.9686)
Luminance0.0459 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1986 #458619
analogous
#241986 #5A1986 #86197B
triadic
#5A1986 #865A19 #19865A
tetradic
#5A1986 #862419 #458619 #197B86
square
#5A1986 #862419 #458619 #197B86
split-complementary
#5A1986 #7B8619 #198624
monochromatic
#15061F #370F52 #5A1986 #7D23BA #9C3EDB

Accessibility & contrast

On white

10.95
#5A1986 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5A1986 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1986
10.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1986#FFFFFF#000000##FFFFFF
##5A19861.0010.951.9210.95
#FFFFFF10.951.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A89
Deuteranopia (green-blind)
#003D84
Tritanopia (blue-blind)
#523550
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1986;
/* rgb */ color: rgb(90, 25, 134);
/* oklch */ color: oklch(38.0% 0.169 306.8);
Tailwind
colors: {
  custom: {
    50: '#8e5eaa',
    500: '#5a1986',
    950: '#000000',
  },
}
SCSS
$custom: #5a1986;
$custom-light: #8e5eaa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1986",
  "rgb": {
    "r": 90,
    "g": 25,
    "b": 134
  },
  "hsl": {
    "h": 275.78,
    "s": 68.553,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37976,
    "c": 0.16864,
    "h": 306.8
  },
  "luminance": 0.0459
}

Semantic roles & 50–950 ramp

primary
#5A1986
secondary
#72BA41
accent
#EB3C83
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1986

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

Preview Lab → · Contrast checker → · Palette generator →

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