#5F1B79#5F1B79

#5F1B79 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.8% C 0.155 H 314.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#5F1B79
RGBrgb(95, 27, 121)
HSLhsl(283, 64%, 29%)
HSVhsv(283, 78%, 47%)
CMYKcmyk(21.5%, 77.7%, 0%, 52.5%)
CIE-LABlab(25.56, 45.02, -39.17)
CIE-LCHlch(25.56, 59.67, 318.97°)
OKLaboklab(37.83% 0.1091 -0.1105)
OKLCHoklch(37.83% 0.155 314.6)
XYZxyz(8.5619, 4.5975, 18.5219)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1B79 #35791B
analogous
#301B79 #5F1B79 #791B64
triadic
#5F1B79 #795F1B #1B795F
tetradic
#5F1B79 #79301B #35791B #1B6479
square
#5F1B79 #79301B #35791B #1B6479
split-complementary
#5F1B79 #64791B #1B7930
monochromatic
#140619 #381047 #5F1B79 #8626AB #A93BD3

Accessibility & contrast

On white

10.94
#5F1B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#5F1B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1B79
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1B79#FFFFFF#000000##FFFFFF
##5F1B791.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397C
Deuteranopia (green-blind)
#163E77
Tritanopia (blue-blind)
#5D3049
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #5f1b79;
/* rgb */ color: rgb(95, 27, 121);
/* oklch */ color: oklch(37.8% 0.155 314.6);
Tailwind
colors: {
  custom: {
    50: '#905fa0',
    500: '#5f1b79',
    950: '#000000',
  },
}
SCSS
$custom: #5f1b79;
$custom-light: #905fa0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1b79",
  "rgb": {
    "r": 95,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 283.404,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.37829,
    "c": 0.15528,
    "h": 314.6
  },
  "luminance": 0.04597
}

Semantic roles & 50–950 ramp

primary
#5F1B79
secondary
#60AD43
accent
#E7416F
background
#F9F5F9
surface
#F1EAF2
border
#CBC6CC
text
#0D050F
muted
#7E797E

Preview Lab

Preview with #5F1B79

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

Preview Lab → · Contrast checker → · Palette generator →

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