#5F1761#5F1761

#5F1761 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.7% C 0.138 H 326.8°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#5F1761
RGBrgb(95, 23, 97)
HSLhsl(298, 62%, 24%)
HSVhsv(298, 76%, 38%)
CMYKcmyk(2.1%, 76.3%, 0%, 62%)
CIE-LABlab(23.37, 41.70, -27.16)
CIE-LCHlch(23.37, 49.77, 326.92°)
OKLaboklab(35.75% 0.1153 -0.0754)
OKLCHoklch(35.75% 0.138 326.8)
XYZxyz(7.1833, 3.9093, 11.6832)
Luminance0.0391 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1761 #196117
analogous
#3A1761 #5F1761 #61173E
triadic
#5F1761 #615F17 #17615F
tetradic
#5F1761 #613A17 #196117 #173E61
square
#5F1761 #613A17 #196117 #173E61
split-complementary
#5F1761 #3E6117 #17613A
monochromatic
#180619 #2F0B30 #5F1761 #8F2392 #C02EC4

Accessibility & contrast

On white

11.79
#5F1761 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F1761 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1761
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1761#FFFFFF#000000##FFFFFF
##5F17611.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#063263
Deuteranopia (green-blind)
#293B5F
Tritanopia (blue-blind)
#62233A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1761;
/* rgb */ color: rgb(95, 23, 97);
/* oklch */ color: oklch(35.7% 0.138 326.8);
Tailwind
colors: {
  custom: {
    50: '#8f5c8e',
    500: '#5f1761',
    950: '#000000',
  },
}
SCSS
$custom: #5f1761;
$custom-light: #8f5c8e;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1761",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 97
  },
  "hsl": {
    "h": 298.378,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.35748,
    "c": 0.13773,
    "h": 326.8
  },
  "luminance": 0.03909
}

Semantic roles & 50–950 ramp

primary
#5F1761
secondary
#3F983C
accent
#E54347
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1761

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

Preview Lab → · Contrast checker → · Palette generator →

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