#5F1779#5F1779

#5F1779 is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.160 H 315.0°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#5F1779
RGBrgb(95, 23, 121)
HSLhsl(284, 68%, 28%)
HSVhsv(284, 81%, 47%)
CMYKcmyk(21.5%, 81%, 0%, 52.5%)
CIE-LABlab(25.03, 46.52, -40.01)
CIE-LCHlch(25.03, 61.36, 319.30°)
OKLaboklab(37.46% 0.1128 -0.113)
OKLCHoklch(37.46% 0.16 315)
XYZxyz(8.4763, 4.4265, 18.4933)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1779 #317917
analogous
#2E1779 #5F1779 #791762
triadic
#5F1779 #795F17 #17795F
tetradic
#5F1779 #792E17 #317917 #176279
square
#5F1779 #792E17 #317917 #176279
split-complementary
#5F1779 #627917 #17792E
monochromatic
#14051A #370D46 #5F1779 #8721AC #AC32D8

Accessibility & contrast

On white

11.14
#5F1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1779
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1779#FFFFFF#000000##FFFFFF
##5F17791.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#113D77
Tritanopia (blue-blind)
#5D2E48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1779;
/* rgb */ color: rgb(95, 23, 121);
/* oklch */ color: oklch(37.5% 0.160 315.0);
Tailwind
colors: {
  custom: {
    50: '#905ea0',
    500: '#5f1779',
    950: '#000000',
  },
}
SCSS
$custom: #5f1779;
$custom-light: #905ea0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1779",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 284.082,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37461,
    "c": 0.15966,
    "h": 315
  },
  "luminance": 0.04426
}

Semantic roles & 50–950 ramp

primary
#5F1779
secondary
#5CAE3E
accent
#EB3D6B
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1779

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

Preview Lab → · Contrast checker → · Palette generator →

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