#5F1880#5F1880

#5F1880 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 38.1% C 0.165 H 312.0°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#5F1880
RGBrgb(95, 24, 128)
HSLhsl(281, 68%, 30%)
HSVhsv(281, 81%, 50%)
CMYKcmyk(25.8%, 81.3%, 0%, 49.8%)
CIE-LABlab(25.70, 47.67, -43.37)
CIE-LCHlch(25.70, 64.45, 317.70°)
OKLaboklab(38.1% 0.1105 -0.1228)
OKLCHoklch(38.1% 0.165 312)
XYZxyz(8.9415, 4.6449, 20.8434)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1880 #398018
analogous
#2B1880 #5F1880 #80186D
triadic
#5F1880 #805F18 #18805F
tetradic
#5F1880 #802B18 #398018 #186D80
square
#5F1880 #802B18 #398018 #186D80
split-complementary
#5F1880 #6D8018 #18802B
monochromatic
#13051A #390E4C #5F1880 #8522B4 #A739DA

Accessibility & contrast

On white

10.89
#5F1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#5F1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1880
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1880#FFFFFF#000000##FFFFFF
##5F18801.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#023E7E
Tritanopia (blue-blind)
#5B324C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1880;
/* rgb */ color: rgb(95, 24, 128);
/* oklch */ color: oklch(38.1% 0.165 312.0);
Tailwind
colors: {
  custom: {
    50: '#915ea6',
    500: '#5f1880',
    950: '#000000',
  },
}
SCSS
$custom: #5f1880;
$custom-light: #915ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1880",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 280.962,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.38098,
    "c": 0.16525,
    "h": 312
  },
  "luminance": 0.04645
}

Semantic roles & 50–950 ramp

primary
#5F1880
secondary
#65B440
accent
#EB3D74
background
#F9F5FA
surface
#F1EAF4
border
#CBC6CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1880

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

Preview Lab → · Contrast checker → · Palette generator →

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