#5A1366#5A1366

#5A1366 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.144 H 321.3°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5A1366
RGBrgb(90, 19, 102)
HSLhsl(291, 69%, 24%)
HSVhsv(291, 81%, 40%)
CMYKcmyk(11.8%, 81.4%, 0%, 60%)
CIE-LABlab(22.30, 42.97, -32.20)
CIE-LCHlch(22.30, 53.69, 323.15°)
OKLaboklab(34.92% 0.1127 -0.0902)
OKLCHoklch(34.92% 0.144 321.3)
XYZxyz(6.8473, 3.5991, 12.9018)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1366 #1F6613
analogous
#301366 #5A1366 #661348
triadic
#5A1366 #665A13 #13665A
tetradic
#5A1366 #663013 #1F6613 #134866
square
#5A1366 #663013 #1F6613 #134866
split-complementary
#5A1366 #486613 #136630
monochromatic
#17051A #2C0932 #5A1366 #881D9A #B526CD

Accessibility & contrast

On white

12.21
#5A1366 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1366
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1366#FFFFFF#000000##FFFFFF
##5A13661.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003068
Deuteranopia (green-blind)
#1E3864
Tritanopia (blue-blind)
#5B243C
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5a1366;
/* rgb */ color: rgb(90, 19, 102);
/* oklch */ color: oklch(34.9% 0.144 321.3);
Tailwind
colors: {
  custom: {
    50: '#8c5a92',
    500: '#5a1366',
    950: '#000000',
  },
}
SCSS
$custom: #5a1366;
$custom-light: #8c5a92;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1366",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 102
  },
  "hsl": {
    "h": 291.325,
    "s": 68.595,
    "l": 23.725
  },
  "oklch": {
    "l": 0.34918,
    "c": 0.14437,
    "h": 321.3
  },
  "luminance": 0.03599
}

Semantic roles & 50–950 ramp

primary
#5A1366
secondary
#469D37
accent
#EB3C56
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #5A1366

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

Preview Lab → · Contrast checker → · Palette generator →

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