#5A128A#5A128A

#5A128A is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.8% C 0.179 H 306.0°. Best body text is #FFFFFF at 11.12:1 contrast (WCAG AA passes).

Color values

HEX#5A128A
RGBrgb(90, 18, 138)
HSLhsl(276, 77%, 31%)
HSVhsv(276, 87%, 54%)
CMYKcmyk(34.8%, 87%, 0%, 45.9%)
CIE-LABlab(25.08, 50.99, -50.69)
CIE-LCHlch(25.08, 71.90, 315.17°)
OKLaboklab(37.77% 0.105 -0.1445)
OKLCHoklch(37.77% 0.179 306)
XYZxyz(9.0192, 4.4413, 24.4219)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A128A #428A12
analogous
#1E128A #5A128A #8A127E
triadic
#5A128A #8A5A12 #128A5A
tetradic
#5A128A #8A1E12 #428A12 #127E8A
square
#5A128A #8A1E12 #428A12 #127E8A
split-complementary
#5A128A #7E8A12 #128A1E
monochromatic
#13041E #370B54 #5A128A #7D19C0 #9D32E4

Accessibility & contrast

On white

11.12
#5A128A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5A128A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A128A
11.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A128A#FFFFFF#000000##FFFFFF
##5A128A1.0011.121.8911.12
#FFFFFF11.121.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#513551
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5a128a;
/* rgb */ color: rgb(90, 18, 138);
/* oklch */ color: oklch(37.8% 0.179 306.0);
Tailwind
colors: {
  custom: {
    50: '#8e5cad',
    500: '#5a128a',
    950: '#000000',
  },
}
SCSS
$custom: #5a128a;
$custom-light: #8e5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a128a",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 138
  },
  "hsl": {
    "h": 276,
    "s": 76.923,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37767,
    "c": 0.17863,
    "h": 306
  },
  "luminance": 0.04441
}

Semantic roles & 50–950 ramp

primary
#5A128A
secondary
#6FBF39
accent
#F33481
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A128A

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

Preview Lab → · Contrast checker → · Palette generator →

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