#5F1676#5F1676

#5F1676 is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.1% C 0.158 H 316.4°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5F1676
RGBrgb(95, 22, 118)
HSLhsl(286, 69%, 27%)
HSVhsv(286, 81%, 46%)
CMYKcmyk(19.5%, 81.4%, 0%, 53.7%)
CIE-LABlab(24.69, 46.24, -38.66)
CIE-LCHlch(24.69, 60.27, 320.10°)
OKLaboklab(37.15% 0.1143 -0.109)
OKLCHoklch(37.15% 0.158 316.4)
XYZxyz(8.2757, 4.3151, 17.5330)
Luminance0.0432 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1676 #2D7616
analogous
#2F1676 #5F1676 #76165D
triadic
#5F1676 #765F16 #16765F
tetradic
#5F1676 #762F16 #2D7616 #165D76
square
#5F1676 #762F16 #2D7616 #165D76
split-complementary
#5F1676 #5D7616 #16762F
monochromatic
#15051A #350C42 #5F1676 #8920AA #AF2ED8

Accessibility & contrast

On white

11.27
#5F1676 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F1676 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1676
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1676#FFFFFF#000000##FFFFFF
##5F16761.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003679
Deuteranopia (green-blind)
#153D74
Tritanopia (blue-blind)
#5D2C46
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f1676;
/* rgb */ color: rgb(95, 22, 118);
/* oklch */ color: oklch(37.1% 0.158 316.4);
Tailwind
colors: {
  custom: {
    50: '#905d9e',
    500: '#5f1676',
    950: '#000000',
  },
}
SCSS
$custom: #5f1676;
$custom-light: #905d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1676",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 118
  },
  "hsl": {
    "h": 285.625,
    "s": 68.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.37145,
    "c": 0.15791,
    "h": 316.4
  },
  "luminance": 0.04315
}

Semantic roles & 50–950 ramp

primary
#5F1676
secondary
#57AC3C
accent
#EB3C66
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D050E
muted
#7E797E

Preview Lab

Preview with #5F1676

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

Preview Lab → · Contrast checker → · Palette generator →

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