#5A138A#5A138A

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

Color values

HEX#5A138A
RGBrgb(90, 19, 138)
HSLhsl(276, 76%, 31%)
HSVhsv(276, 86%, 54%)
CMYKcmyk(34.8%, 86.2%, 0%, 45.9%)
CIE-LABlab(25.18, 50.69, -50.52)
CIE-LCHlch(25.18, 71.57, 315.09°)
OKLaboklab(37.84% 0.1044 -0.144)
OKLCHoklch(37.84% 0.178 305.9)
XYZxyz(9.0357, 4.4745, 24.4275)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A138A #438A13
analogous
#1E138A #5A138A #8A137E
triadic
#5A138A #8A5A13 #138A5A
tetradic
#5A138A #8A1E13 #438A13 #137E8A
square
#5A138A #8A1E13 #438A13 #137E8A
split-complementary
#5A138A #7E8A13 #138A1E
monochromatic
#14041E #370C54 #5A138A #7D1AC0 #9D34E3

Accessibility & contrast

On white

11.08
#5A138A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A138A
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A138A#FFFFFF#000000##FFFFFF
##5A138A1.0011.081.8911.08
#FFFFFF11.081.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a138a;
/* rgb */ color: rgb(90, 19, 138);
/* oklch */ color: oklch(37.8% 0.178 305.9);
Tailwind
colors: {
  custom: {
    50: '#8e5cad',
    500: '#5a138a',
    950: '#000000',
  },
}
SCSS
$custom: #5a138a;
$custom-light: #8e5cad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a138a",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 138
  },
  "hsl": {
    "h": 275.798,
    "s": 75.796,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37838,
    "c": 0.17786,
    "h": 305.9
  },
  "luminance": 0.04474
}

Semantic roles & 50–950 ramp

primary
#5A138A
secondary
#70BE3A
accent
#F23582
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A138A

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

Preview Lab → · Contrast checker → · Palette generator →

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