#5F1867#5F1867

#5F1867 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.2% C 0.142 H 323.5°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#5F1867
RGBrgb(95, 24, 103)
HSLhsl(294, 62%, 25%)
HSVhsv(294, 77%, 40%)
CMYKcmyk(7.8%, 76.7%, 0%, 59.6%)
CIE-LABlab(23.89, 42.47, -30.26)
CIE-LCHlch(23.89, 52.15, 324.53°)
OKLaboklab(36.24% 0.114 -0.0844)
OKLCHoklch(36.24% 0.142 323.5)
XYZxyz(7.4939, 4.0659, 13.2194)
Luminance0.0406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1867 #206718
analogous
#371867 #5F1867 #671848
triadic
#5F1867 #675F18 #18675F
tetradic
#5F1867 #673718 #206718 #184867
square
#5F1867 #673718 #206718 #184867
split-complementary
#5F1867 #486718 #186737
monochromatic
#170619 #310C35 #5F1867 #8D2499 #BB2FCA

Accessibility & contrast

On white

11.58
#5F1867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F1867
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1867#FFFFFF#000000##FFFFFF
##5F18671.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003469
Deuteranopia (green-blind)
#263C65
Tritanopia (blue-blind)
#61263E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1867;
/* rgb */ color: rgb(95, 24, 103);
/* oklch */ color: oklch(36.2% 0.142 323.5);
Tailwind
colors: {
  custom: {
    50: '#8f5d93',
    500: '#5f1867',
    950: '#000000',
  },
}
SCSS
$custom: #5f1867;
$custom-light: #8f5d93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1867",
  "rgb": {
    "r": 95,
    "g": 24,
    "b": 103
  },
  "hsl": {
    "h": 293.924,
    "s": 62.205,
    "l": 24.902
  },
  "oklch": {
    "l": 0.36243,
    "c": 0.14188,
    "h": 323.5
  },
  "luminance": 0.04065
}

Semantic roles & 50–950 ramp

primary
#5F1867
secondary
#479D3E
accent
#E54353
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D050D
muted
#7E797E

Preview Lab

Preview with #5F1867

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

Preview Lab → · Contrast checker → · Palette generator →

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