#5A1367#5A1367

#5A1367 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.145 H 320.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#5A1367
RGBrgb(90, 19, 103)
HSLhsl(291, 69%, 24%)
HSVhsv(291, 82%, 40%)
CMYKcmyk(12.6%, 81.6%, 0%, 59.6%)
CIE-LABlab(22.37, 43.16, -32.74)
CIE-LCHlch(22.37, 54.18, 322.82°)
OKLaboklab(34.99% 0.1126 -0.0918)
OKLCHoklch(34.99% 0.145 320.8)
XYZxyz(6.8972, 3.6191, 13.1646)
Luminance0.0362 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1367 #206713
analogous
#301367 #5A1367 #67134A
triadic
#5A1367 #675A13 #13675A
tetradic
#5A1367 #673013 #206713 #134A67
square
#5A1367 #673013 #206713 #134A67
split-complementary
#5A1367 #4A6713 #136730
monochromatic
#17051A #2D0933 #5A1367 #871D9B #B426CE

Accessibility & contrast

On white

12.18
#5A1367 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5A1367 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1367
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1367#FFFFFF#000000##FFFFFF
##5A13671.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#1D3865
Tritanopia (blue-blind)
#5B243D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1367;
/* rgb */ color: rgb(90, 19, 103);
/* oklch */ color: oklch(35.0% 0.145 320.8);
Tailwind
colors: {
  custom: {
    50: '#8c5a93',
    500: '#5a1367',
    950: '#000000',
  },
}
SCSS
$custom: #5a1367;
$custom-light: #8c5a93;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1367",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 103
  },
  "hsl": {
    "h": 290.714,
    "s": 68.852,
    "l": 23.922
  },
  "oklch": {
    "l": 0.3499,
    "c": 0.14527,
    "h": 320.8
  },
  "luminance": 0.03619
}

Semantic roles & 50–950 ramp

primary
#5A1367
secondary
#479E37
accent
#EC3C57
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1367

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

Preview Lab → · Contrast checker → · Palette generator →

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