#5D1781#5D1781

#5D1781 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.8% C 0.167 H 310.6°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5D1781
RGBrgb(93, 23, 129)
HSLhsl(280, 70%, 30%)
HSVhsv(280, 82%, 51%)
CMYKcmyk(27.9%, 82.2%, 0%, 49.4%)
CIE-LABlab(25.34, 47.87, -44.60)
CIE-LCHlch(25.34, 65.43, 317.02°)
OKLaboklab(37.81% 0.1083 -0.1265)
OKLCHoklch(37.81% 0.167 310.6)
XYZxyz(8.7823, 4.5251, 21.1754)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1781 #3B8117
analogous
#281781 #5D1781 #811770
triadic
#5D1781 #815D17 #17815D
tetradic
#5D1781 #812817 #3B8117 #177081
square
#5D1781 #812817 #3B8117 #177081
split-complementary
#5D1781 #708117 #178128
monochromatic
#13051A #380E4D #5D1781 #8220B5 #A437DB

Accessibility & contrast

On white

11.02
#5D1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5D1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D1781
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1781#FFFFFF#000000##FFFFFF
##5D17811.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003984
Deuteranopia (green-blind)
#003D7F
Tritanopia (blue-blind)
#58324C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5d1781;
/* rgb */ color: rgb(93, 23, 129);
/* oklch */ color: oklch(37.8% 0.167 310.6);
Tailwind
colors: {
  custom: {
    50: '#8f5ea6',
    500: '#5d1781',
    950: '#000000',
  },
}
SCSS
$custom: #5d1781;
$custom-light: #8f5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1781",
  "rgb": {
    "r": 93,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 279.623,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.37805,
    "c": 0.16658,
    "h": 310.6
  },
  "luminance": 0.04525
}

Semantic roles & 50–950 ramp

primary
#5D1781
secondary
#67B53E
accent
#ED3B77
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5D1781

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

Preview Lab → · Contrast checker → · Palette generator →

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