#5D1281#5D1281

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

Color values

HEX#5D1281
RGBrgb(93, 18, 129)
HSLhsl(281, 76%, 29%)
HSVhsv(281, 86%, 51%)
CMYKcmyk(27.9%, 86%, 0%, 49.4%)
CIE-LABlab(24.78, 49.49, -45.51)
CIE-LCHlch(24.78, 67.23, 317.40°)
OKLaboklab(37.42% 0.1122 -0.1292)
OKLCHoklch(37.42% 0.171 311)
XYZxyz(8.6922, 4.3450, 21.1454)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1281 #368112
analogous
#261281 #5D1281 #81126E
triadic
#5D1281 #815D12 #12815D
tetradic
#5D1281 #812612 #368112 #126E81
square
#5D1281 #812612 #368112 #126E81
split-complementary
#5D1281 #6E8112 #128126
monochromatic
#13041B #360B4B #5D1281 #8419B7 #A72CE2

Accessibility & contrast

On white

11.24
#5D1281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1281
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1281#FFFFFF#000000##FFFFFF
##5D12811.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003884
Deuteranopia (green-blind)
#003C7F
Tritanopia (blue-blind)
#58304C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5d1281;
/* rgb */ color: rgb(93, 18, 129);
/* oklch */ color: oklch(37.4% 0.171 311.0);
Tailwind
colors: {
  custom: {
    50: '#905ca6',
    500: '#5d1281',
    950: '#000000',
  },
}
SCSS
$custom: #5d1281;
$custom-light: #905ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1281",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 280.541,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37417,
    "c": 0.17106,
    "h": 311
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#5D1281
secondary
#61B738
accent
#F23673
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D1281

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

Preview Lab → · Contrast checker → · Palette generator →

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