#5D1775#5D1775

#5D1775 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.9% C 0.155 H 315.6°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#5D1775
RGBrgb(93, 23, 117)
HSLhsl(285, 67%, 27%)
HSVhsv(285, 80%, 46%)
CMYKcmyk(20.5%, 80.3%, 0%, 54.1%)
CIE-LABlab(24.40, 45.27, -38.50)
CIE-LCHlch(24.40, 59.42, 319.62°)
OKLaboklab(36.85% 0.1108 -0.1086)
OKLCHoklch(36.85% 0.155 315.6)
XYZxyz(8.0310, 4.2246, 17.2186)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1775 #2F7517
analogous
#2E1775 #5D1775 #75175E
triadic
#5D1775 #755D17 #17755D
tetradic
#5D1775 #752E17 #2F7517 #175E75
square
#5D1775 #752E17 #2F7517 #175E75
split-complementary
#5D1775 #5E7517 #17752E
monochromatic
#14051A #340D42 #5D1775 #8621A8 #AC30D6

Accessibility & contrast

On white

11.38
#5D1775 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5D1775 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1775
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1775#FFFFFF#000000##FFFFFF
##5D17751.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#143C73
Tritanopia (blue-blind)
#5B2C46
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1775;
/* rgb */ color: rgb(93, 23, 117);
/* oklch */ color: oklch(36.9% 0.155 315.6);
Tailwind
colors: {
  custom: {
    50: '#8f5d9d',
    500: '#5d1775',
    950: '#000000',
  },
}
SCSS
$custom: #5d1775;
$custom-light: #8f5d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1775",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 117
  },
  "hsl": {
    "h": 284.681,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.36852,
    "c": 0.15517,
    "h": 315.6
  },
  "luminance": 0.04224
}

Semantic roles & 50–950 ramp

primary
#5D1775
secondary
#59AA3D
accent
#EA3E6A
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1775

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

Preview Lab → · Contrast checker → · Palette generator →

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