#5A1381#5A1381

#5A1381 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.169 H 309.2°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5A1381
RGBrgb(90, 19, 129)
HSLhsl(279, 74%, 29%)
HSVhsv(279, 85%, 51%)
CMYKcmyk(30.2%, 85.3%, 0%, 49.4%)
CIE-LABlab(24.40, 48.67, -46.15)
CIE-LCHlch(24.40, 67.07, 316.53°)
OKLaboklab(37.05% 0.1071 -0.1312)
OKLCHoklch(37.05% 0.169 309.2)
XYZxyz(8.4110, 4.2245, 21.1370)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1381 #3A8113
analogous
#231381 #5A1381 #811371
triadic
#5A1381 #815A13 #13815A
tetradic
#5A1381 #812313 #3A8113 #137181
square
#5A1381 #812313 #3A8113 #137181
split-complementary
#5A1381 #718113 #138123
monochromatic
#13041B #350B4C #5A1381 #7F1BB6 #A12EE0

Accessibility & contrast

On white

11.38
#5A1381 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5A1381 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1381
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1381#FFFFFF#000000##FFFFFF
##5A13811.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#003B7F
Tritanopia (blue-blind)
#54314C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5a1381;
/* rgb */ color: rgb(90, 19, 129);
/* oklch */ color: oklch(37.1% 0.169 309.2);
Tailwind
colors: {
  custom: {
    50: '#8d5ca6',
    500: '#5a1381',
    950: '#000000',
  },
}
SCSS
$custom: #5a1381;
$custom-light: #8d5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1381",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 129
  },
  "hsl": {
    "h": 278.727,
    "s": 74.324,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37054,
    "c": 0.16936,
    "h": 309.2
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#5A1381
secondary
#66B63A
accent
#F13779
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A1381

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

Preview Lab → · Contrast checker → · Palette generator →

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