#5A1A89#5A1A89

#5A1A89 is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.3% C 0.171 H 305.6°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#5A1A89
RGBrgb(90, 26, 137)
HSLhsl(275, 68%, 32%)
HSVhsv(275, 81%, 54%)
CMYKcmyk(34.3%, 81%, 0%, 46.3%)
CIE-LABlab(25.92, 48.06, -48.70)
CIE-LCHlch(25.92, 68.42, 314.62°)
OKLaboklab(38.32% 0.0994 -0.1387)
OKLCHoklch(38.32% 0.171 305.6)
XYZxyz(9.1002, 4.7187, 24.0934)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1A89 #49891A
analogous
#231A89 #5A1A89 #891A81
triadic
#5A1A89 #895A1A #1A895A
tetradic
#5A1A89 #89231A #49891A #1A8189
square
#5A1A89 #89231A #49891A #1A8189
split-complementary
#5A1A89 #81891A #1A8923
monochromatic
#160622 #381056 #5A1A89 #7C24BC #9A42DB

Accessibility & contrast

On white

10.80
#5A1A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1A89
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1A89#FFFFFF#000000##FFFFFF
##5A1A891.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#513752
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5a1a89;
/* rgb */ color: rgb(90, 26, 137);
/* oklch */ color: oklch(38.3% 0.171 305.6);
Tailwind
colors: {
  custom: {
    50: '#8e5fac',
    500: '#5a1a89',
    950: '#000000',
  },
}
SCSS
$custom: #5a1a89;
$custom-light: #8e5fac;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1a89",
  "rgb": {
    "r": 90,
    "g": 26,
    "b": 137
  },
  "hsl": {
    "h": 274.595,
    "s": 68.098,
    "l": 31.961
  },
  "oklch": {
    "l": 0.38323,
    "c": 0.17065,
    "h": 305.6
  },
  "luminance": 0.04719
}

Semantic roles & 50–950 ramp

primary
#5A1A89
secondary
#76BC43
accent
#EB3D87
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D0510
muted
#7E797F

Preview Lab

Preview with #5A1A89

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

Preview Lab → · Contrast checker → · Palette generator →

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