#5A1885#5A1885

#5A1885 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.169 H 307.3°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#5A1885
RGBrgb(90, 24, 133)
HSLhsl(276, 69%, 31%)
HSVhsv(276, 82%, 52%)
CMYKcmyk(32.3%, 82%, 0%, 47.8%)
CIE-LABlab(25.32, 47.87, -47.16)
CIE-LCHlch(25.32, 67.20, 315.43°)
OKLaboklab(37.8% 0.1022 -0.1342)
OKLCHoklch(37.8% 0.169 307.3)
XYZxyz(8.7758, 4.5205, 22.5960)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1885 #438518
analogous
#231885 #5A1885 #851879
triadic
#5A1885 #855A18 #18855A
tetradic
#5A1885 #852318 #438518 #187985
square
#5A1885 #852318 #438518 #187985
split-complementary
#5A1885 #798518 #188523
monochromatic
#14051D #370F51 #5A1885 #7D21B9 #9D3CDC

Accessibility & contrast

On white

11.03
#5A1885 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A1885 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1885
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1885#FFFFFF#000000##FFFFFF
##5A18851.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003C83
Tritanopia (blue-blind)
#53354F
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5a1885;
/* rgb */ color: rgb(90, 24, 133);
/* oklch */ color: oklch(37.8% 0.169 307.3);
Tailwind
colors: {
  custom: {
    50: '#8e5ea9',
    500: '#5a1885',
    950: '#000000',
  },
}
SCSS
$custom: #5a1885;
$custom-light: #8e5ea9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1885",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 133
  },
  "hsl": {
    "h": 276.33,
    "s": 69.427,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37802,
    "c": 0.16864,
    "h": 307.3
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#5A1885
secondary
#70B940
accent
#EC3C81
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1885

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

Preview Lab → · Contrast checker → · Palette generator →

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