#5F1979#5F1979

#5F1979 is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.158 H 314.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#5F1979
RGBrgb(95, 25, 121)
HSLhsl(284, 66%, 29%)
HSVhsv(284, 79%, 47%)
CMYKcmyk(21.5%, 79.3%, 0%, 52.5%)
CIE-LABlab(25.29, 45.79, -39.60)
CIE-LCHlch(25.29, 60.54, 319.14°)
OKLaboklab(37.64% 0.111 -0.1118)
OKLCHoklch(37.64% 0.158 314.8)
XYZxyz(8.5176, 4.5089, 18.5071)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1979 #337919
analogous
#2F1979 #5F1979 #791963
triadic
#5F1979 #795F19 #19795F
tetradic
#5F1979 #792F19 #337919 #196379
square
#5F1979 #792F19 #337919 #196379
split-complementary
#5F1979 #637919 #19792F
monochromatic
#140519 #370F46 #5F1979 #8723AC #AB37D6

Accessibility & contrast

On white

11.04
#5F1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F1979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1979
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1979#FFFFFF#000000##FFFFFF
##5F19791.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f1979;
/* rgb */ color: rgb(95, 25, 121);
/* oklch */ color: oklch(37.6% 0.158 314.8);
Tailwind
colors: {
  custom: {
    50: '#905ea0',
    500: '#5f1979',
    950: '#000000',
  },
}
SCSS
$custom: #5f1979;
$custom-light: #905ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1979",
  "rgb": {
    "r": 95,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 283.75,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37639,
    "c": 0.15753,
    "h": 314.8
  },
  "luminance": 0.04509
}

Semantic roles & 50–950 ramp

primary
#5F1979
secondary
#5EAE40
accent
#E93F6D
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1979

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

Preview Lab → · Contrast checker → · Palette generator →

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