#5F1D79#5F1D79

#5F1D79 is a dark, vivid purple. Relative luminance 0.047; OKLCH L 38.0% C 0.153 H 314.4°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#5F1D79
RGBrgb(95, 29, 121)
HSLhsl(283, 61%, 29%)
HSVhsv(283, 76%, 47%)
CMYKcmyk(21.5%, 76%, 0%, 52.5%)
CIE-LABlab(25.84, 44.21, -38.71)
CIE-LCHlch(25.84, 58.76, 318.79°)
OKLaboklab(38.03% 0.107 -0.1092)
OKLCHoklch(38.03% 0.153 314.4)
XYZxyz(8.6093, 4.6924, 18.5377)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1D79 #37791D
analogous
#311D79 #5F1D79 #791D65
triadic
#5F1D79 #795F1D #1D795F
tetradic
#5F1D79 #79311D #37791D #1D6579
square
#5F1D79 #79311D #37791D #1D6579
split-complementary
#5F1D79 #65791D #1D7931
monochromatic
#130619 #381148 #5F1D79 #8629AA #A83FD1

Accessibility & contrast

On white

10.83
#5F1D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#5F1D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1D79
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1D79#FFFFFF#000000##FFFFFF
##5F1D791.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#183F77
Tritanopia (blue-blind)
#5D3149
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1d79;
/* rgb */ color: rgb(95, 29, 121);
/* oklch */ color: oklch(38.0% 0.153 314.4);
Tailwind
colors: {
  custom: {
    50: '#9060a0',
    500: '#5f1d79',
    950: '#000000',
  },
}
SCSS
$custom: #5f1d79;
$custom-light: #9060a0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1d79",
  "rgb": {
    "r": 95,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 283.043,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3803,
    "c": 0.15291,
    "h": 314.4
  },
  "luminance": 0.04692
}

Semantic roles & 50–950 ramp

primary
#5F1D79
secondary
#62AD45
accent
#E44371
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1D79

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

Preview Lab → · Contrast checker → · Palette generator →

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