#5D1175#5D1175

#5D1175 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.4% C 0.161 H 316.0°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#5D1175
RGBrgb(93, 17, 117)
HSLhsl(286, 75%, 26%)
HSVhsv(286, 85%, 46%)
CMYKcmyk(20.5%, 85.5%, 0%, 54.1%)
CIE-LABlab(23.71, 47.26, -39.61)
CIE-LCHlch(23.71, 61.66, 320.03°)
OKLaboklab(36.37% 0.1159 -0.1118)
OKLCHoklch(36.37% 0.161 316)
XYZxyz(7.9250, 4.0127, 17.1833)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1175 #297511
analogous
#2B1175 #5D1175 #75115B
triadic
#5D1175 #755D11 #11755D
tetradic
#5D1175 #752B11 #297511 #115B75
square
#5D1175 #752B11 #297511 #115B75
split-complementary
#5D1175 #5B7511 #11752B
monochromatic
#15041B #330940 #5D1175 #8719AA #B122DF

Accessibility & contrast

On white

11.65
#5D1175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5D1175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1175
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1175#FFFFFF#000000##FFFFFF
##5D11751.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#0E3A73
Tritanopia (blue-blind)
#5B2A44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5d1175;
/* rgb */ color: rgb(93, 17, 117);
/* oklch */ color: oklch(36.4% 0.161 316.0);
Tailwind
colors: {
  custom: {
    50: '#8f5b9d',
    500: '#5d1175',
    950: '#000000',
  },
}
SCSS
$custom: #5d1175;
$custom-light: #8f5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1175",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 117
  },
  "hsl": {
    "h": 285.6,
    "s": 74.627,
    "l": 26.275
  },
  "oklch": {
    "l": 0.36369,
    "c": 0.16101,
    "h": 316
  },
  "luminance": 0.04012
}

Semantic roles & 50–950 ramp

primary
#5D1175
secondary
#52AC36
accent
#F13763
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1175

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

Preview Lab → · Contrast checker → · Palette generator →

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