#5A1175#5A1175

#5A1175 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.160 H 314.3°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#5A1175
RGBrgb(90, 17, 117)
HSLhsl(284, 75%, 26%)
HSVhsv(284, 85%, 46%)
CMYKcmyk(23.1%, 85.5%, 0%, 54.1%)
CIE-LABlab(23.20, 46.70, -40.46)
CIE-LCHlch(23.20, 61.79, 319.09°)
OKLaboklab(35.91% 0.1118 -0.1144)
OKLCHoklch(35.91% 0.16 314.3)
XYZxyz(7.6272, 3.8592, 17.1693)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1175 #2C7511
analogous
#281175 #5A1175 #75115E
triadic
#5A1175 #755A11 #11755A
tetradic
#5A1175 #752811 #2C7511 #115E75
square
#5A1175 #752811 #2C7511 #115E75
split-complementary
#5A1175 #5E7511 #117528
monochromatic
#15041B #310940 #5A1175 #8319AA #AC22DF

Accessibility & contrast

On white

11.85
#5A1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5A1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1175
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1175#FFFFFF#000000##FFFFFF
##5A11751.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#063973
Tritanopia (blue-blind)
#572A44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5a1175;
/* rgb */ color: rgb(90, 17, 117);
/* oklch */ color: oklch(35.9% 0.160 314.3);
Tailwind
colors: {
  custom: {
    50: '#8d5a9d',
    500: '#5a1175',
    950: '#000000',
  },
}
SCSS
$custom: #5a1175;
$custom-light: #8d5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1175",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 283.8,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35908,
    "c": 0.15996,
    "h": 314.3
  },
  "luminance": 0.03859
}

Semantic roles & 50–950 ramp

primary
#5A1175
secondary
#56AC36
accent
#F13769
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0D040E
muted
#7D797E

Preview Lab

Preview with #5A1175

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

Preview Lab → · Contrast checker → · Palette generator →

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