#5D1F76#5D1F76

#5D1F76 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.7% C 0.147 H 314.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#5D1F76
RGBrgb(93, 31, 118)
HSLhsl(283, 58%, 29%)
HSVhsv(283, 74%, 46%)
CMYKcmyk(21.2%, 73.7%, 0%, 53.7%)
CIE-LABlab(25.61, 42.24, -37.19)
CIE-LCHlch(25.61, 56.28, 318.64°)
OKLaboklab(37.73% 0.1025 -0.1048)
OKLCHoklch(37.73% 0.147 314.4)
XYZxyz(8.2737, 4.6154, 17.5911)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1F76 #38761F
analogous
#321F76 #5D1F76 #761F64
triadic
#5D1F76 #765D1F #1F765D
tetradic
#5D1F76 #76321F #38761F #1F6476
square
#5D1F76 #76321F #38761F #1F6476
split-complementary
#5D1F76 #64761F #1F7632
monochromatic
#130618 #371246 #5D1F76 #832CA6 #A542CD

Accessibility & contrast

On white

10.92
#5D1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5D1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1F76
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1F76#FFFFFF#000000##FFFFFF
##5D1F761.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#1B3E74
Tritanopia (blue-blind)
#5B3148
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5d1f76;
/* rgb */ color: rgb(93, 31, 118);
/* oklch */ color: oklch(37.7% 0.147 314.4);
Tailwind
colors: {
  custom: {
    50: '#8e619e',
    500: '#5d1f76',
    950: '#000000',
  },
}
SCSS
$custom: #5d1f76;
$custom-light: #8e619e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1f76",
  "rgb": {
    "r": 93,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 282.759,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37733,
    "c": 0.14661,
    "h": 314.4
  },
  "luminance": 0.04615
}

Semantic roles & 50–950 ramp

primary
#5D1F76
secondary
#63AA47
accent
#E24673
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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