#5A1180#5A1180

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

Color values

HEX#5A1180
RGBrgb(90, 17, 128)
HSLhsl(279, 77%, 28%)
HSVhsv(279, 87%, 50%)
CMYKcmyk(29.7%, 86.7%, 0%, 49.8%)
CIE-LABlab(24.11, 49.06, -45.99)
CIE-LCHlch(24.11, 67.25, 316.85°)
OKLaboklab(36.82% 0.1088 -0.1307)
OKLCHoklch(36.82% 0.17 309.8)
XYZxyz(8.3124, 4.1332, 20.7778)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1180 #378011
analogous
#221180 #5A1180 #80116E
triadic
#5A1180 #805A11 #11805A
tetradic
#5A1180 #802211 #378011 #116E80
square
#5A1180 #802211 #378011 #116E80
split-complementary
#5A1180 #6E8011 #118022
monochromatic
#13041B #340A4A #5A1180 #8018B6 #A329E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A1180#FFFFFF#000000##FFFFFF
##5A11801.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)
#003683
Deuteranopia (green-blind)
#003A7E
Tritanopia (blue-blind)
#54304B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5a1180;
/* rgb */ color: rgb(90, 17, 128);
/* oklch */ color: oklch(36.8% 0.170 309.8);
Tailwind
colors: {
  custom: {
    50: '#8d5ba6',
    500: '#5a1180',
    950: '#000000',
  },
}
SCSS
$custom: #5a1180;
$custom-light: #8d5ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1180",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 279.459,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.36824,
    "c": 0.17008,
    "h": 309.8
  },
  "luminance": 0.04133
}

Semantic roles & 50–950 ramp

primary
#5A1180
secondary
#62B637
accent
#F33576
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5A1180

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

Preview Lab → · Contrast checker → · Palette generator →

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