#5A1081#5A1081

#5A1081 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.172 H 309.5°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#5A1081
RGBrgb(90, 16, 129)
HSLhsl(279, 78%, 28%)
HSVhsv(279, 88%, 51%)
CMYKcmyk(30.2%, 87.6%, 0%, 49.4%)
CIE-LABlab(24.09, 49.57, -46.65)
CIE-LCHlch(24.09, 68.07, 316.74°)
OKLaboklab(36.84% 0.1092 -0.1326)
OKLCHoklch(36.84% 0.172 309.5)
XYZxyz(8.3634, 4.1294, 21.1211)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1081 #378110
analogous
#211081 #5A1081 #81106F
triadic
#5A1081 #815A10 #10815A
tetradic
#5A1081 #812110 #378110 #106F81
square
#5A1081 #812110 #378110 #106F81
split-complementary
#5A1081 #6F8110 #108121
monochromatic
#13031B #34094B #5A1081 #8017B7 #A327E4

Accessibility & contrast

On white

11.50
#5A1081 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#5A1081 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1081
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1081#FFFFFF#000000##FFFFFF
##5A10811.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#003A7F
Tritanopia (blue-blind)
#54304B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1081;
/* rgb */ color: rgb(90, 16, 129);
/* oklch */ color: oklch(36.8% 0.172 309.5);
Tailwind
colors: {
  custom: {
    50: '#8e5ba6',
    500: '#5a1081',
    950: '#000000',
  },
}
SCSS
$custom: #5a1081;
$custom-light: #8e5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1081",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 129
  },
  "hsl": {
    "h": 279.292,
    "s": 77.931,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36842,
    "c": 0.17178,
    "h": 309.5
  },
  "luminance": 0.04129
}

Semantic roles & 50–950 ramp

primary
#5A1081
secondary
#62B736
accent
#F43376
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A1081

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

Preview Lab → · Contrast checker → · Palette generator →

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