#5D1276#5D1276

#5D1276 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.5% C 0.161 H 315.5°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5D1276
RGBrgb(93, 18, 118)
HSLhsl(285, 74%, 27%)
HSVhsv(285, 85%, 46%)
CMYKcmyk(21.2%, 84.7%, 0%, 53.7%)
CIE-LABlab(23.90, 47.16, -39.95)
CIE-LCHlch(23.90, 61.81, 319.73°)
OKLaboklab(36.52% 0.1149 -0.1128)
OKLCHoklch(36.52% 0.161 315.5)
XYZxyz(8.0000, 4.0681, 17.4998)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1276 #2B7612
analogous
#2B1276 #5D1276 #76125D
triadic
#5D1276 #765D12 #12765D
tetradic
#5D1276 #762B12 #2B7612 #125D76
square
#5D1276 #762B12 #2B7612 #125D76
split-complementary
#5D1276 #5D7612 #12762B
monochromatic
#15041B #330A41 #5D1276 #871AAB #AF25DE

Accessibility & contrast

On white

11.58
#5D1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5D1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1276
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1276#FFFFFF#000000##FFFFFF
##5D12761.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#0D3B74
Tritanopia (blue-blind)
#5B2B45
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5d1276;
/* rgb */ color: rgb(93, 18, 118);
/* oklch */ color: oklch(36.5% 0.161 315.5);
Tailwind
colors: {
  custom: {
    50: '#8f5b9e',
    500: '#5d1276',
    950: '#000000',
  },
}
SCSS
$custom: #5d1276;
$custom-light: #8f5b9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1276",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 285,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.36521,
    "c": 0.16102,
    "h": 315.5
  },
  "luminance": 0.04068
}

Semantic roles & 50–950 ramp

primary
#5D1276
secondary
#55AD37
accent
#F03866
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5D1276

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

Preview Lab → · Contrast checker → · Palette generator →

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