#5F1767#5F1767

#5F1767 is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.1% C 0.143 H 323.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#5F1767
RGBrgb(95, 23, 103)
HSLhsl(294, 63%, 25%)
HSVhsv(294, 78%, 40%)
CMYKcmyk(7.8%, 77.7%, 0%, 59.6%)
CIE-LABlab(23.76, 42.85, -30.47)
CIE-LCHlch(23.76, 52.58, 324.58°)
OKLaboklab(36.15% 0.1151 -0.085)
OKLCHoklch(36.15% 0.143 323.5)
XYZxyz(7.4737, 4.0254, 13.2127)
Luminance0.0403 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1767 #1F6717
analogous
#371767 #5F1767 #671747
triadic
#5F1767 #675F17 #17675F
tetradic
#5F1767 #673717 #1F6717 #174767
square
#5F1767 #673717 #1F6717 #174767
split-complementary
#5F1767 #476717 #176737
monochromatic
#170619 #310C35 #5F1767 #8D2299 #BB2DCB

Accessibility & contrast

On white

11.63
#5F1767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#5F1767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1767
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1767#FFFFFF#000000##FFFFFF
##5F17671.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003369
Deuteranopia (green-blind)
#253B65
Tritanopia (blue-blind)
#61263E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1767;
/* rgb */ color: rgb(95, 23, 103);
/* oklch */ color: oklch(36.1% 0.143 323.5);
Tailwind
colors: {
  custom: {
    50: '#8f5d93',
    500: '#5f1767',
    950: '#000000',
  },
}
SCSS
$custom: #5f1767;
$custom-light: #8f5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1767",
  "rgb": {
    "r": 95,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 294,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.36148,
    "c": 0.14308,
    "h": 323.5
  },
  "luminance": 0.04025
}

Semantic roles & 50–950 ramp

primary
#5F1767
secondary
#469D3D
accent
#E74152
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1767

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

Preview Lab → · Contrast checker → · Palette generator →

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