#5A1864#5A1864

#5A1864 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.137 H 322.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#5A1864
RGBrgb(90, 24, 100)
HSLhsl(292, 61%, 24%)
HSVhsv(292, 76%, 39%)
CMYKcmyk(10%, 76%, 0%, 60.8%)
CIE-LABlab(22.82, 40.69, -30.06)
CIE-LCHlch(22.82, 50.59, 323.54°)
OKLaboklab(35.24% 0.1078 -0.084)
OKLCHoklch(35.24% 0.137 322.1)
XYZxyz(6.8431, 3.7474, 12.4170)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1864 #226418
analogous
#341864 #5A1864 #641848
triadic
#5A1864 #645A18 #18645A
tetradic
#5A1864 #643418 #226418 #184864
square
#5A1864 #643418 #226418 #184864
split-complementary
#5A1864 #486418 #186434
monochromatic
#160619 #2E0C33 #5A1864 #862495 #B330C7

Accessibility & contrast

On white

12.00
#5A1864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5A1864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1864
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1864#FFFFFF#000000##FFFFFF
##5A18641.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003266
Deuteranopia (green-blind)
#223962
Tritanopia (blue-blind)
#5B263C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1864;
/* rgb */ color: rgb(90, 24, 100);
/* oklch */ color: oklch(35.2% 0.137 322.1);
Tailwind
colors: {
  custom: {
    50: '#8b5c90',
    500: '#5a1864',
    950: '#000000',
  },
}
SCSS
$custom: #5a1864;
$custom-light: #8b5c90;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1864",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 100
  },
  "hsl": {
    "h": 292.105,
    "s": 61.29,
    "l": 24.314
  },
  "oklch": {
    "l": 0.35243,
    "c": 0.13667,
    "h": 322.1
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#5A1864
secondary
#4A9A3E
accent
#E44359
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1864

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

Preview Lab → · Contrast checker → · Palette generator →

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