#5A1475#5A1475

#5A1475 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.157 H 314.1°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#5A1475
RGBrgb(90, 20, 117)
HSLhsl(283, 71%, 27%)
HSVhsv(283, 83%, 46%)
CMYKcmyk(23.1%, 82.9%, 0%, 54.1%)
CIE-LABlab(23.53, 45.73, -39.92)
CIE-LCHlch(23.53, 60.70, 318.88°)
OKLaboklab(36.14% 0.1094 -0.1129)
OKLCHoklch(36.14% 0.157 314.1)
XYZxyz(7.6769, 3.9586, 17.1859)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1475 #2F7514
analogous
#2A1475 #5A1475 #751460
triadic
#5A1475 #755A14 #14755A
tetradic
#5A1475 #752A14 #2F7514 #146075
square
#5A1475 #752A14 #2F7514 #146075
split-complementary
#5A1475 #607514 #14752A
monochromatic
#14041A #320B41 #5A1475 #821DA9 #A929DA

Accessibility & contrast

On white

11.72
#5A1475 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1475
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1475#FFFFFF#000000##FFFFFF
##5A14751.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#0A3A73
Tritanopia (blue-blind)
#572C45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1475;
/* rgb */ color: rgb(90, 20, 117);
/* oklch */ color: oklch(36.1% 0.157 314.1);
Tailwind
colors: {
  custom: {
    50: '#8d5b9d',
    500: '#5a1475',
    950: '#000000',
  },
}
SCSS
$custom: #5a1475;
$custom-light: #8d5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1475",
  "rgb": {
    "r": 90,
    "g": 20,
    "b": 117
  },
  "hsl": {
    "h": 283.299,
    "s": 70.803,
    "l": 26.863
  },
  "oklch": {
    "l": 0.36142,
    "c": 0.15716,
    "h": 314.1
  },
  "luminance": 0.03958
}

Semantic roles & 50–950 ramp

primary
#5A1475
secondary
#59AB3A
accent
#EE3A6C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1475

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

Preview Lab → · Contrast checker → · Palette generator →

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