#5F1561#5F1561

#5F1561 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.6% C 0.140 H 326.9°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#5F1561
RGBrgb(95, 21, 97)
HSLhsl(298, 64%, 23%)
HSVhsv(298, 78%, 38%)
CMYKcmyk(2.1%, 78.4%, 0%, 62%)
CIE-LABlab(23.11, 42.44, -27.57)
CIE-LCHlch(23.11, 50.61, 326.99°)
OKLaboklab(35.56% 0.1174 -0.0766)
OKLCHoklch(35.56% 0.14 326.9)
XYZxyz(7.1450, 3.8328, 11.6704)
Luminance0.0383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1561 #176115
analogous
#391561 #5F1561 #61153D
triadic
#5F1561 #615F15 #15615F
tetradic
#5F1561 #613915 #176115 #153D61
square
#5F1561 #613915 #176115 #153D61
split-complementary
#5F1561 #3D6115 #156139
monochromatic
#190519 #2E0A2F #5F1561 #902093 #C22BC6

Accessibility & contrast

On white

11.89
#5F1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5F1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1561
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1561#FFFFFF#000000##FFFFFF
##5F15611.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033163
Deuteranopia (green-blind)
#283A5F
Tritanopia (blue-blind)
#62223A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1561;
/* rgb */ color: rgb(95, 21, 97);
/* oklch */ color: oklch(35.6% 0.140 326.9);
Tailwind
colors: {
  custom: {
    50: '#8f5c8e',
    500: '#5f1561',
    950: '#000000',
  },
}
SCSS
$custom: #5f1561;
$custom-light: #8f5c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1561",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 298.421,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35563,
    "c": 0.14011,
    "h": 326.9
  },
  "luminance": 0.03832
}

Semantic roles & 50–950 ramp

primary
#5F1561
secondary
#3C983A
accent
#E74045
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1561

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

Preview Lab → · Contrast checker → · Palette generator →

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