#5F1680#5F1680

#5F1680 is a dark, vivid purple. Relative luminance 0.046; OKLCH L 37.9% C 0.167 H 312.1°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#5F1680
RGBrgb(95, 22, 128)
HSLhsl(281, 71%, 29%)
HSVhsv(281, 83%, 50%)
CMYKcmyk(25.8%, 82.8%, 0%, 49.8%)
CIE-LABlab(25.46, 48.36, -43.76)
CIE-LCHlch(25.46, 65.22, 317.86°)
OKLaboklab(37.93% 0.1122 -0.124)
OKLCHoklch(37.93% 0.167 312.1)
XYZxyz(8.9018, 4.5655, 20.8302)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1680 #378016
analogous
#2A1680 #5F1680 #80166C
triadic
#5F1680 #805F16 #16805F
tetradic
#5F1680 #802A16 #378016 #166C80
square
#5F1680 #802A16 #378016 #166C80
split-complementary
#5F1680 #6C8016 #16802A
monochromatic
#13041A #380D4C #5F1680 #861FB4 #A834DC

Accessibility & contrast

On white

10.98
#5F1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5F1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1680
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1680#FFFFFF#000000##FFFFFF
##5F16801.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#003E7E
Tritanopia (blue-blind)
#5B314C
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f1680;
/* rgb */ color: rgb(95, 22, 128);
/* oklch */ color: oklch(37.9% 0.167 312.1);
Tailwind
colors: {
  custom: {
    50: '#915ea6',
    500: '#5f1680',
    950: '#000000',
  },
}
SCSS
$custom: #5f1680;
$custom-light: #915ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1680",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 281.321,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3793,
    "c": 0.16722,
    "h": 312.1
  },
  "luminance": 0.04565
}

Semantic roles & 50–950 ramp

primary
#5F1680
secondary
#62B53D
accent
#ED3A72
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F1680

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

Preview Lab → · Contrast checker → · Palette generator →

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