#5F1582#5F1582

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

Color values

HEX#5F1582
RGBrgb(95, 21, 130)
HSLhsl(281, 72%, 30%)
HSVhsv(281, 84%, 51%)
CMYKcmyk(26.9%, 83.8%, 0%, 49%)
CIE-LABlab(25.51, 49.12, -44.94)
CIE-LCHlch(25.51, 66.58, 317.54°)
OKLaboklab(38.01% 0.1125 -0.1274)
OKLCHoklch(38.01% 0.17 311.4)
XYZxyz(9.0160, 4.5812, 21.5241)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1582 #388215
analogous
#291582 #5F1582 #82156F
triadic
#5F1582 #825F15 #15825F
tetradic
#5F1582 #822915 #388215 #156F82
square
#5F1582 #822915 #388215 #156F82
split-complementary
#5F1582 #6F8215 #158229
monochromatic
#13041A #380C4D #5F1582 #861EB7 #A733DE

Accessibility & contrast

On white

10.96
#5F1582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F1582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1582
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1582#FFFFFF#000000##FFFFFF
##5F15821.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003985
Deuteranopia (green-blind)
#003E80
Tritanopia (blue-blind)
#5A314D
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1582;
/* rgb */ color: rgb(95, 21, 130);
/* oklch */ color: oklch(38.0% 0.170 311.4);
Tailwind
colors: {
  custom: {
    50: '#915da7',
    500: '#5f1582',
    950: '#000000',
  },
}
SCSS
$custom: #5f1582;
$custom-light: #915da7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1582",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 280.734,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.38014,
    "c": 0.17001,
    "h": 311.4
  },
  "luminance": 0.04581
}

Semantic roles & 50–950 ramp

primary
#5F1582
secondary
#63B73C
accent
#EF3973
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1582

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

Preview Lab → · Contrast checker → · Palette generator →

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