#5A1376#5A1376

#5A1376 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 36.1% C 0.159 H 313.7°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#5A1376
RGBrgb(90, 19, 118)
HSLhsl(283, 72%, 27%)
HSVhsv(283, 84%, 46%)
CMYKcmyk(23.7%, 83.9%, 0%, 53.7%)
CIE-LABlab(23.50, 46.28, -40.62)
CIE-LCHlch(23.50, 61.58, 318.72°)
OKLaboklab(36.14% 0.11 -0.1149)
OKLCHoklch(36.14% 0.159 313.7)
XYZxyz(7.7188, 3.9477, 17.4914)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1376 #2F7613
analogous
#281376 #5A1376 #761361
triadic
#5A1376 #765A13 #13765A
tetradic
#5A1376 #762813 #2F7613 #136176
square
#5A1376 #762813 #2F7613 #136176
split-complementary
#5A1376 #617613 #137628
monochromatic
#14041A #320B41 #5A1376 #821BAB #A927DC

Accessibility & contrast

On white

11.74
#5A1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#5A1376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1376
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1376#FFFFFF#000000##FFFFFF
##5A13761.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#063974
Tritanopia (blue-blind)
#572C45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1376;
/* rgb */ color: rgb(90, 19, 118);
/* oklch */ color: oklch(36.1% 0.159 313.7);
Tailwind
colors: {
  custom: {
    50: '#8d5b9e',
    500: '#5a1376',
    950: '#000000',
  },
}
SCSS
$custom: #5a1376;
$custom-light: #8d5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1376",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 283.03,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36142,
    "c": 0.15906,
    "h": 313.7
  },
  "luminance": 0.03947
}

Semantic roles & 50–950 ramp

primary
#5A1376
secondary
#59AC39
accent
#EF396C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1376

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

Preview Lab → · Contrast checker → · Palette generator →

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