#5F1671#5F1671

#5F1671 is a dark, vivid purple. Relative luminance 0.042; OKLCH L 36.8% C 0.153 H 318.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#5F1671
RGBrgb(95, 22, 113)
HSLhsl(288, 67%, 26%)
HSVhsv(288, 81%, 44%)
CMYKcmyk(15.9%, 80.5%, 0%, 55.7%)
CIE-LABlab(24.32, 45.21, -36.04)
CIE-LCHlch(24.32, 57.82, 321.43°)
OKLaboklab(36.77% 0.115 -0.1013)
OKLCHoklch(36.77% 0.153 318.6)
XYZxyz(7.9865, 4.1994, 16.0095)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1671 #287116
analogous
#321671 #5F1671 #711656
triadic
#5F1671 #715F16 #16715F
tetradic
#5F1671 #713216 #287116 #165671
square
#5F1671 #713216 #287116 #165671
split-complementary
#5F1671 #567116 #167132
monochromatic
#16051A #340C3E #5F1671 #8A20A4 #B42CD6

Accessibility & contrast

On white

11.41
#5F1671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#5F1671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1671
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1671#FFFFFF#000000##FFFFFF
##5F16711.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003573
Deuteranopia (green-blind)
#1C3C6F
Tritanopia (blue-blind)
#5F2A43
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #5f1671;
/* rgb */ color: rgb(95, 22, 113);
/* oklch */ color: oklch(36.8% 0.153 318.6);
Tailwind
colors: {
  custom: {
    50: '#905d9a',
    500: '#5f1671',
    950: '#000000',
  },
}
SCSS
$custom: #5f1671;
$custom-light: #905d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1671",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 288.132,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.36769,
    "c": 0.1533,
    "h": 318.6
  },
  "luminance": 0.04199
}

Semantic roles & 50–950 ramp

primary
#5F1671
secondary
#51A73C
accent
#EA3E60
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1671

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

Preview Lab → · Contrast checker → · Palette generator →

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