#5A1E8A#5A1E8A

#5A1E8A is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.8% C 0.168 H 304.8°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#5A1E8A
RGBrgb(90, 30, 138)
HSLhsl(273, 64%, 33%)
HSVhsv(273, 78%, 54%)
CMYKcmyk(34.8%, 78.3%, 0%, 45.9%)
CIE-LABlab(26.56, 46.70, -48.28)
CIE-LCHlch(26.56, 67.17, 314.05°)
OKLaboklab(38.8% 0.0956 -0.1375)
OKLCHoklch(38.8% 0.168 304.8)
XYZxyz(9.2671, 4.9372, 24.5046)
Luminance0.0494 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1E8A #4E8A1E
analogous
#241E8A #5A1E8A #8A1E84
triadic
#5A1E8A #8A5A1E #1E8A5A
tetradic
#5A1E8A #8A241E #4E8A1E #1E848A
square
#5A1E8A #8A241E #4E8A1E #1E848A
split-complementary
#5A1E8A #848A1E #1E8A24
monochromatic
#180825 #391358 #5A1E8A #7B29BC #994BD8

Accessibility & contrast

On white

10.57
#5A1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#5A1E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1E8A
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1E8A#FFFFFF#000000##FFFFFF
##5A1E8A1.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#513953
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1e8a;
/* rgb */ color: rgb(90, 30, 138);
/* oklch */ color: oklch(38.8% 0.168 304.8);
Tailwind
colors: {
  custom: {
    50: '#8e61ad',
    500: '#5a1e8a',
    950: '#000000',
  },
}
SCSS
$custom: #5a1e8a;
$custom-light: #8e61ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1e8a",
  "rgb": {
    "r": 90,
    "g": 30,
    "b": 138
  },
  "hsl": {
    "h": 273.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.38795,
    "c": 0.1675,
    "h": 304.8
  },
  "luminance": 0.04937
}

Semantic roles & 50–950 ramp

primary
#5A1E8A
secondary
#7CBA4A
accent
#E7418B
background
#F9F6FA
surface
#F1EBF4
border
#CBC6CE
text
#0D0510
muted
#7E7A7F

Preview Lab

Preview with #5A1E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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