#5A1A93#5A1A93

#5A1A93 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 39.2% C 0.181 H 302.3°. Best body text is #FFFFFF at 10.48:1 contrast (WCAG AA passes).

Color values

HEX#5A1A93
RGBrgb(90, 26, 147)
HSLhsl(272, 70%, 34%)
HSVhsv(272, 82%, 58%)
CMYKcmyk(38.8%, 82.3%, 0%, 42.4%)
CIE-LABlab(26.79, 50.43, -53.48)
CIE-LCHlch(26.79, 73.51, 313.32°)
OKLaboklab(39.2% 0.0965 -0.1527)
OKLCHoklch(39.2% 0.181 302.3)
XYZxyz(9.8510, 5.0190, 28.0479)
Luminance0.0502 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A93 #53931A
analogous
#1E1A93 #5A1A93 #931A90
triadic
#5A1A93 #935A1A #1A935A
tetradic
#5A1A93 #931E1A #53931A #1A9093
square
#5A1A93 #931E1A #53931A #1A9093
split-complementary
#5A1A93 #90931A #1A931E
monochromatic
#1A082B #3A115F #5A1A93 #7A23C7 #9849DF

Accessibility & contrast

On white

10.48
#5A1A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#5A1A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A93
10.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A93#FFFFFF#000000##FFFFFF
##5A1A931.0010.482.0010.48
#FFFFFF10.481.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E96
Deuteranopia (green-blind)
#003F91
Tritanopia (blue-blind)
#4E3C57
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #5a1a93;
/* rgb */ color: rgb(90, 26, 147);
/* oklch */ color: oklch(39.2% 0.181 302.3);
Tailwind
colors: {
  custom: {
    50: '#8f60b4',
    500: '#5a1a93',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a93;
$custom-light: #8f60b4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a93",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 147
  },
  "hsl": {
    "h": 271.736,
    "s": 69.942,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39199,
    "c": 0.18067,
    "h": 302.3
  },
  "luminance": 0.05019
}

Semantic roles & 50–950 ramp

primary
#5A1A93
secondary
#81C048
accent
#ED3B8F
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #5A1A93

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

Preview Lab → · Contrast checker → · Palette generator →

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