#5A1364#5A1364

#5A1364 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.143 H 322.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#5A1364
RGBrgb(90, 19, 100)
HSLhsl(293, 68%, 23%)
HSVhsv(293, 81%, 39%)
CMYKcmyk(10%, 81%, 0%, 60.8%)
CIE-LABlab(22.16, 42.57, -31.11)
CIE-LCHlch(22.16, 52.73, 323.84°)
OKLaboklab(34.77% 0.1129 -0.087)
OKLCHoklch(34.77% 0.143 322.4)
XYZxyz(6.7493, 3.5599, 12.3857)
Luminance0.0356 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1364 #1D6413
analogous
#311364 #5A1364 #641345
triadic
#5A1364 #645A13 #13645A
tetradic
#5A1364 #643113 #1D6413 #134564
square
#5A1364 #643113 #1D6413 #134564
split-complementary
#5A1364 #456413 #136431
monochromatic
#17051A #2C0931 #5A1364 #881D97 #B727CB

Accessibility & contrast

On white

12.27
#5A1364 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5A1364 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1364
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1364#FFFFFF#000000##FFFFFF
##5A13641.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003066
Deuteranopia (green-blind)
#203862
Tritanopia (blue-blind)
#5B233B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1364;
/* rgb */ color: rgb(90, 19, 100);
/* oklch */ color: oklch(34.8% 0.143 322.4);
Tailwind
colors: {
  custom: {
    50: '#8c5a91',
    500: '#5a1364',
    950: '#000000',
  },
}
SCSS
$custom: #5a1364;
$custom-light: #8c5a91;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1364",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 100
  },
  "hsl": {
    "h": 292.593,
    "s": 68.067,
    "l": 23.333
  },
  "oklch": {
    "l": 0.34774,
    "c": 0.14257,
    "h": 322.4
  },
  "luminance": 0.0356
}

Semantic roles & 50–950 ramp

primary
#5A1364
secondary
#449C37
accent
#EB3D52
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040D
muted
#7D797D

Preview Lab

Preview with #5A1364

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

Preview Lab → · Contrast checker → · Palette generator →

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