#5A1863#5A1863

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

Color values

HEX#5A1863
RGBrgb(90, 24, 99)
HSLhsl(293, 61%, 24%)
HSVhsv(293, 76%, 39%)
CMYKcmyk(9.1%, 75.8%, 0%, 61.2%)
CIE-LABlab(22.75, 40.48, -29.51)
CIE-LCHlch(22.75, 50.10, 323.91°)
OKLaboklab(35.17% 0.1079 -0.0824)
OKLCHoklch(35.17% 0.136 322.6)
XYZxyz(6.7950, 3.7282, 12.1637)
Luminance0.0373 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1863 #216318
analogous
#351863 #5A1863 #631847
triadic
#5A1863 #635A18 #18635A
tetradic
#5A1863 #633518 #216318 #184763
square
#5A1863 #633518 #216318 #184763
split-complementary
#5A1863 #476318 #186335
monochromatic
#160619 #2D0C32 #5A1863 #872494 #B430C6

Accessibility & contrast

On white

12.03
#5A1863 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1863
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1863#FFFFFF#000000##FFFFFF
##5A18631.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003165
Deuteranopia (green-blind)
#233961
Tritanopia (blue-blind)
#5B253C
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5a1863;
/* rgb */ color: rgb(90, 24, 99);
/* oklch */ color: oklch(35.2% 0.136 322.6);
Tailwind
colors: {
  custom: {
    50: '#8b5c90',
    500: '#5a1863',
    950: '#000000',
  },
}
SCSS
$custom: #5a1863;
$custom-light: #8b5c90;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1863",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 99
  },
  "hsl": {
    "h": 292.8,
    "s": 60.976,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35174,
    "c": 0.13574,
    "h": 322.6
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#5A1863
secondary
#49993E
accent
#E44457
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A1863

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

Preview Lab → · Contrast checker → · Palette generator →

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