#5F1A79#5F1A79

#5F1A79 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.7% C 0.156 H 314.7°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).

Color values

HEX#5F1A79
RGBrgb(95, 26, 121)
HSLhsl(284, 65%, 29%)
HSVhsv(284, 79%, 47%)
CMYKcmyk(21.5%, 78.5%, 0%, 52.5%)
CIE-LABlab(25.42, 45.41, -39.39)
CIE-LCHlch(25.42, 60.11, 319.06°)
OKLaboklab(37.73% 0.1101 -0.1112)
OKLCHoklch(37.73% 0.156 314.7)
XYZxyz(8.5393, 4.5525, 18.5143)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1A79 #34791A
analogous
#301A79 #5F1A79 #791A64
triadic
#5F1A79 #795F1A #1A795F
tetradic
#5F1A79 #79301A #34791A #1A6479
square
#5F1A79 #79301A #34791A #1A6479
split-complementary
#5F1A79 #64791A #1A7930
monochromatic
#140519 #370F47 #5F1A79 #8725AB #AA39D4

Accessibility & contrast

On white

10.99
#5F1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1A79
10.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1A79#FFFFFF#000000##FFFFFF
##5F1A791.0010.991.9110.99
#FFFFFF10.991.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#153E77
Tritanopia (blue-blind)
#5D2F49
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1a79;
/* rgb */ color: rgb(95, 26, 121);
/* oklch */ color: oklch(37.7% 0.156 314.7);
Tailwind
colors: {
  custom: {
    50: '#905fa0',
    500: '#5f1a79',
    950: '#000000',
  },
}
SCSS
$custom: #5f1a79;
$custom-light: #905fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1a79",
  "rgb": {
    "r": 95,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 283.579,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.37733,
    "c": 0.15642,
    "h": 314.7
  },
  "luminance": 0.04552
}

Semantic roles & 50–950 ramp

primary
#5F1A79
secondary
#5FAD41
accent
#E8406E
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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