#5A1869#5A1869

#5A1869 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.141 H 319.5°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#5A1869
RGBrgb(90, 24, 105)
HSLhsl(289, 63%, 25%)
HSVhsv(289, 77%, 41%)
CMYKcmyk(14.3%, 77.1%, 0%, 58.8%)
CIE-LABlab(23.16, 41.71, -32.78)
CIE-LCHlch(23.16, 53.05, 321.84°)
OKLaboklab(35.6% 0.1075 -0.0919)
OKLCHoklch(35.6% 0.141 319.5)
XYZxyz(7.0926, 3.8472, 13.7309)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1869 #276918
analogous
#311869 #5A1869 #69184F
triadic
#5A1869 #695A18 #18695A
tetradic
#5A1869 #693118 #276918 #184F69
square
#5A1869 #693118 #276918 #184F69
split-complementary
#5A1869 #4F6918 #186931
monochromatic
#150619 #2F0D37 #5A1869 #85239B #AF2FCD

Accessibility & contrast

On white

11.87
#5A1869 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1869 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1869
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1869#FFFFFF#000000##FFFFFF
##5A18691.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336B
Deuteranopia (green-blind)
#1E3967
Tritanopia (blue-blind)
#5A283F
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1869;
/* rgb */ color: rgb(90, 24, 105);
/* oklch */ color: oklch(35.6% 0.141 319.5);
Tailwind
colors: {
  custom: {
    50: '#8c5c94',
    500: '#5a1869',
    950: '#000000',
  },
}
SCSS
$custom: #5a1869;
$custom-light: #8c5c94;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1869",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 105
  },
  "hsl": {
    "h": 288.889,
    "s": 62.791,
    "l": 25.294
  },
  "oklch": {
    "l": 0.35596,
    "c": 0.14141,
    "h": 319.5
  },
  "luminance": 0.03847
}

Semantic roles & 50–950 ramp

primary
#5A1869
secondary
#509F3E
accent
#E64260
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1869

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

Preview Lab → · Contrast checker → · Palette generator →

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