#5D1280#5D1280

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

Color values

HEX#5D1280
RGBrgb(93, 18, 128)
HSLhsl(281, 75%, 29%)
HSVhsv(281, 86%, 50%)
CMYKcmyk(27.3%, 85.9%, 0%, 49.8%)
CIE-LABlab(24.70, 49.27, -45.01)
CIE-LCHlch(24.70, 66.74, 317.59°)
OKLaboklab(37.33% 0.1124 -0.1277)
OKLCHoklch(37.33% 0.17 311.4)
XYZxyz(8.6260, 4.3185, 20.7970)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D1280 #358012
analogous
#261280 #5D1280 #80126C
triadic
#5D1280 #805D12 #12805D
tetradic
#5D1280 #802612 #358012 #126C80
square
#5D1280 #802612 #358012 #126C80
split-complementary
#5D1280 #6C8012 #128026
monochromatic
#13041B #360A4A #5D1280 #841AB6 #A72BE1

Accessibility & contrast

On white

11.27
#5D1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5D1280
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D1280#FFFFFF#000000##FFFFFF
##5D12801.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5d1280;
/* rgb */ color: rgb(93, 18, 128);
/* oklch */ color: oklch(37.3% 0.170 311.4);
Tailwind
colors: {
  custom: {
    50: '#8f5ca6',
    500: '#5d1280',
    950: '#000000',
  },
}
SCSS
$custom: #5d1280;
$custom-light: #8f5ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#5d1280",
  "rgb": {
    "r": 93,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 280.909,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37333,
    "c": 0.17014,
    "h": 311.4
  },
  "luminance": 0.04318
}

Semantic roles & 50–950 ramp

primary
#5D1280
secondary
#60B638
accent
#F23672
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5D1280

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

Preview Lab → · Contrast checker → · Palette generator →

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