#5A1A88#5A1A88

#5A1A88 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.2% C 0.170 H 306.0°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#5A1A88
RGBrgb(90, 26, 136)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 53%)
CMYKcmyk(33.8%, 80.9%, 0%, 46.7%)
CIE-LABlab(25.83, 47.83, -48.21)
CIE-LCHlch(25.83, 67.91, 314.77°)
OKLaboklab(38.24% 0.0997 -0.1373)
OKLCHoklch(38.24% 0.17 306)
XYZxyz(9.0288, 4.6901, 23.7174)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A88 #48881A
analogous
#231A88 #5A1A88 #881A7F
triadic
#5A1A88 #885A1A #1A885A
tetradic
#5A1A88 #88231A #48881A #1A7F88
square
#5A1A88 #88231A #48881A #1A7F88
split-complementary
#5A1A88 #7F881A #1A8823
monochromatic
#160621 #381055 #5A1A88 #7C24BB #9B42DB

Accessibility & contrast

On white

10.84
#5A1A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5A1A88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1A88
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A88#FFFFFF#000000##FFFFFF
##5A1A881.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003D86
Tritanopia (blue-blind)
#523751
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1a88;
/* rgb */ color: rgb(90, 26, 136);
/* oklch */ color: oklch(38.2% 0.170 306.0);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5a1a88',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a88;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a88",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 136
  },
  "hsl": {
    "h": 274.909,
    "s": 67.901,
    "l": 31.765
  },
  "oklch": {
    "l": 0.38237,
    "c": 0.16964,
    "h": 306
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#5A1A88
secondary
#75BB43
accent
#EB3D86
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1A88

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

Preview Lab → · Contrast checker → · Palette generator →

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