#5D1B72#5D1B72

#5D1B72 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.0% C 0.148 H 316.6°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#5D1B72
RGBrgb(93, 27, 114)
HSLhsl(286, 62%, 28%)
HSVhsv(286, 76%, 45%)
CMYKcmyk(18.4%, 76.3%, 0%, 55.3%)
CIE-LABlab(24.72, 43.07, -36.06)
CIE-LCHlch(24.72, 56.17, 320.07°)
OKLaboklab(37.01% 0.1073 -0.1015)
OKLCHoklch(37.01% 0.148 316.6)
XYZxyz(7.9429, 4.3263, 16.3330)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1B72 #30721B
analogous
#311B72 #5D1B72 #721B5C
triadic
#5D1B72 #725D1B #1B725D
tetradic
#5D1B72 #72311B #30721B #1B5C72
square
#5D1B72 #72311B #30721B #1B5C72
split-complementary
#5D1B72 #5C721B #1B7231
monochromatic
#140619 #350F41 #5D1B72 #8527A3 #AB38D0

Accessibility & contrast

On white

11.26
#5D1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5D1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1B72
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1B72#FFFFFF#000000##FFFFFF
##5D1B721.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#1B3D70
Tritanopia (blue-blind)
#5C2D45
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1b72;
/* rgb */ color: rgb(93, 27, 114);
/* oklch */ color: oklch(37.0% 0.148 316.6);
Tailwind
colors: {
  custom: {
    50: '#8e5f9b',
    500: '#5d1b72',
    950: '#000000',
  },
}
SCSS
$custom: #5d1b72;
$custom-light: #8e5f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1b72",
  "rgb": {
    "r": 93,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 285.517,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3701,
    "c": 0.14769,
    "h": 316.6
  },
  "luminance": 0.04326
}

Semantic roles & 50–950 ramp

primary
#5D1B72
secondary
#5AA742
accent
#E5436A
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5D1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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