#5D1180#5D1180

#5D1180 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.171 H 311.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#5D1180
RGBrgb(93, 17, 128)
HSLhsl(281, 77%, 28%)
HSVhsv(281, 87%, 50%)
CMYKcmyk(27.3%, 86.7%, 0%, 49.8%)
CIE-LABlab(24.60, 49.57, -45.17)
CIE-LCHlch(24.60, 67.06, 317.65°)
OKLaboklab(37.26% 0.1131 -0.1282)
OKLCHoklch(37.26% 0.171 311.4)
XYZxyz(8.6102, 4.2868, 20.7918)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1180 #348011
analogous
#251180 #5D1180 #80116B
triadic
#5D1180 #805D11 #11805D
tetradic
#5D1180 #802511 #348011 #116B80
square
#5D1180 #802511 #348011 #116B80
split-complementary
#5D1180 #6B8011 #118025
monochromatic
#14041B #360A4A #5D1180 #8418B6 #A829E3

Accessibility & contrast

On white

11.31
#5D1180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5D1180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1180
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1180#FFFFFF#000000##FFFFFF
##5D11801.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003783
Deuteranopia (green-blind)
#003C7E
Tritanopia (blue-blind)
#582F4B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5d1180;
/* rgb */ color: rgb(93, 17, 128);
/* oklch */ color: oklch(37.3% 0.171 311.4);
Tailwind
colors: {
  custom: {
    50: '#905ba6',
    500: '#5d1180',
    950: '#000000',
  },
}
SCSS
$custom: #5d1180;
$custom-light: #905ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1180",
  "rgb": {
    "r": 93,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 281.081,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37264,
    "c": 0.17096,
    "h": 311.4
  },
  "luminance": 0.04287
}

Semantic roles & 50–950 ramp

primary
#5D1180
secondary
#5FB637
accent
#F33571
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D1180

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

Preview Lab → · Contrast checker → · Palette generator →

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