#5A148A#5A148A

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

Color values

HEX#5A148A
RGBrgb(90, 20, 138)
HSLhsl(276, 75%, 31%)
HSVhsv(276, 86%, 54%)
CMYKcmyk(34.8%, 85.5%, 0%, 45.9%)
CIE-LABlab(25.29, 50.38, -50.35)
CIE-LCHlch(25.29, 71.23, 315.02°)
OKLaboklab(37.91% 0.1037 -0.1435)
OKLCHoklch(37.91% 0.177 305.9)
XYZxyz(9.0530, 4.5090, 24.4332)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A148A #448A14
analogous
#1F148A #5A148A #8A147F
triadic
#5A148A #8A5A14 #148A5A
tetradic
#5A148A #8A1F14 #448A14 #147F8A
square
#5A148A #8A1F14 #448A14 #147F8A
split-complementary
#5A148A #7F8A14 #148A1F
monochromatic
#14051F #370C55 #5A148A #7D1CBF #9C36E2

Accessibility & contrast

On white

11.04
#5A148A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5A148A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A148A
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A148A#FFFFFF#000000##FFFFFF
##5A148A1.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.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: #5a148a;
/* rgb */ color: rgb(90, 20, 138);
/* oklch */ color: oklch(37.9% 0.177 305.9);
Tailwind
colors: {
  custom: {
    50: '#8e5dad',
    500: '#5a148a',
    950: '#000000',
  },
}
SCSS
$custom: #5a148a;
$custom-light: #8e5dad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a148a",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 138
  },
  "hsl": {
    "h": 275.593,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37911,
    "c": 0.17706,
    "h": 305.9
  },
  "luminance": 0.04509
}

Semantic roles & 50–950 ramp

primary
#5A148A
secondary
#71BE3C
accent
#F13682
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A148A

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

Preview Lab → · Contrast checker → · Palette generator →

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