#5F1354#5F1354

#5F1354 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.132 H 334.7°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).

Color values

HEX#5F1354
RGBrgb(95, 19, 84)
HSLhsl(309, 67%, 22%)
HSVhsv(309, 80%, 37%)
CMYKcmyk(0%, 80%, 11.6%, 62.7%)
CIE-LABlab(22.09, 40.86, -20.56)
CIE-LCHlch(22.09, 45.73, 333.29°)
OKLaboklab(34.58% 0.119 -0.0562)
OKLCHoklch(34.58% 0.132 334.7)
XYZxyz(6.5525, 3.5393, 8.7238)
Luminance0.0354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1354 #135F1E
analogous
#44135F #5F1354 #5F132E
triadic
#5F1354 #545F13 #13545F
tetradic
#5F1354 #5F4413 #135F1E #132E5F
square
#5F1354 #5F4413 #135F1E #132E5F
split-complementary
#5F1354 #2E5F13 #135F44
monochromatic
#1A0517 #2C0927 #5F1354 #921D81 #C527AE

Accessibility & contrast

On white

12.30
#5F1354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#5F1354 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1354
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1354#FFFFFF#000000##FFFFFF
##5F13541.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122E56
Deuteranopia (green-blind)
#2E3952
Tritanopia (blue-blind)
#641A32
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1354;
/* rgb */ color: rgb(95, 19, 84);
/* oklch */ color: oklch(34.6% 0.132 334.7);
Tailwind
colors: {
  custom: {
    50: '#8f5a84',
    500: '#5f1354',
    950: '#000000',
  },
}
SCSS
$custom: #5f1354;
$custom-light: #8f5a84;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1354",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 308.684,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34577,
    "c": 0.13166,
    "h": 334.7
  },
  "luminance": 0.03539
}

Semantic roles & 50–950 ramp

primary
#5F1354
secondary
#379745
accent
#EA573E
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1354

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

Preview Lab → · Contrast checker → · Palette generator →

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