#5A1375#5A1375

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

Color values

HEX#5A1375
RGBrgb(90, 19, 117)
HSLhsl(283, 72%, 27%)
HSVhsv(283, 84%, 46%)
CMYKcmyk(23.1%, 83.8%, 0%, 54.1%)
CIE-LABlab(23.42, 46.06, -40.11)
CIE-LCHlch(23.42, 61.08, 318.95°)
OKLaboklab(36.06% 0.1102 -0.1134)
OKLCHoklch(36.06% 0.158 314.2)
XYZxyz(7.6597, 3.9240, 17.1801)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1375 #2E7513
analogous
#291375 #5A1375 #75135F
triadic
#5A1375 #755A13 #13755A
tetradic
#5A1375 #752913 #2E7513 #135F75
square
#5A1375 #752913 #2E7513 #135F75
split-complementary
#5A1375 #5F7513 #137529
monochromatic
#14041A #320A40 #5A1375 #831CAA #AA27DC

Accessibility & contrast

On white

11.77
#5A1375 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5A1375 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1375
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1375#FFFFFF#000000##FFFFFF
##5A13751.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#093973
Tritanopia (blue-blind)
#572B45
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5a1375;
/* rgb */ color: rgb(90, 19, 117);
/* oklch */ color: oklch(36.1% 0.158 314.2);
Tailwind
colors: {
  custom: {
    50: '#8d5b9d',
    500: '#5a1375',
    950: '#000000',
  },
}
SCSS
$custom: #5a1375;
$custom-light: #8d5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1375",
  "rgb": {
    "r": 90,
    "g": 19,
    "b": 117
  },
  "hsl": {
    "h": 283.469,
    "s": 72.059,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.15813,
    "h": 314.2
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#5A1375
secondary
#58AB38
accent
#EF396B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1375

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

Preview Lab → · Contrast checker → · Palette generator →

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