#5F1580#5F1580

#5F1580 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.9% C 0.168 H 312.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#5F1580
RGBrgb(95, 21, 128)
HSLhsl(281, 72%, 29%)
HSVhsv(281, 84%, 50%)
CMYKcmyk(25.8%, 83.6%, 0%, 49.8%)
CIE-LABlab(25.35, 48.69, -43.94)
CIE-LCHlch(25.35, 65.59, 317.93°)
OKLaboklab(37.85% 0.113 -0.1245)
OKLCHoklch(37.85% 0.168 312.2)
XYZxyz(8.8830, 4.5280, 20.8239)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1580 #368015
analogous
#291580 #5F1580 #80156C
triadic
#5F1580 #805F15 #15805F
tetradic
#5F1580 #802915 #368015 #156C80
square
#5F1580 #802915 #368015 #156C80
split-complementary
#5F1580 #6C8015 #158029
monochromatic
#14041A #380C4B #5F1580 #861EB5 #A932DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F1580#FFFFFF#000000##FFFFFF
##5F15801.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)
#003983
Deuteranopia (green-blind)
#003D7E
Tritanopia (blue-blind)
#5B304C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1580;
/* rgb */ color: rgb(95, 21, 128);
/* oklch */ color: oklch(37.9% 0.168 312.2);
Tailwind
colors: {
  custom: {
    50: '#915da6',
    500: '#5f1580',
    950: '#000000',
  },
}
SCSS
$custom: #5f1580;
$custom-light: #915da6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1580",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 281.495,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.37851,
    "c": 0.16814,
    "h": 312.2
  },
  "luminance": 0.04528
}

Semantic roles & 50–950 ramp

primary
#5F1580
secondary
#61B53C
accent
#EF3971
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1580

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

Preview Lab → · Contrast checker → · Palette generator →

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