#5F1879#5F1879

#5F1879 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.5% C 0.159 H 314.9°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#5F1879
RGBrgb(95, 24, 121)
HSLhsl(284, 67%, 28%)
HSVhsv(284, 80%, 47%)
CMYKcmyk(21.5%, 80.2%, 0%, 52.5%)
CIE-LABlab(25.16, 46.16, -39.81)
CIE-LCHlch(25.16, 60.95, 319.22°)
OKLaboklab(37.55% 0.1119 -0.1124)
OKLCHoklch(37.55% 0.159 314.9)
XYZxyz(8.4966, 4.4670, 18.5001)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1879 #327918
analogous
#2E1879 #5F1879 #791862
triadic
#5F1879 #795F18 #18795F
tetradic
#5F1879 #792E18 #327918 #186279
square
#5F1879 #792E18 #327918 #186279
split-complementary
#5F1879 #627918 #18792E
monochromatic
#14051A #370E46 #5F1879 #8722AC #AB35D7

Accessibility & contrast

On white

11.09
#5F1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1879
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1879#FFFFFF#000000##FFFFFF
##5F18791.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#133D77
Tritanopia (blue-blind)
#5D2E48
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1879;
/* rgb */ color: rgb(95, 24, 121);
/* oklch */ color: oklch(37.5% 0.159 314.9);
Tailwind
colors: {
  custom: {
    50: '#905ea0',
    500: '#5f1879',
    950: '#000000',
  },
}
SCSS
$custom: #5f1879;
$custom-light: #905ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1879",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 283.918,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37549,
    "c": 0.15862,
    "h": 314.9
  },
  "luminance": 0.04467
}

Semantic roles & 50–950 ramp

primary
#5F1879
secondary
#5DAE3F
accent
#EA3E6C
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1879

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

Preview Lab → · Contrast checker → · Palette generator →

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