#5F1358#5F1358

#5F1358 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.135 H 332.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#5F1358
RGBrgb(95, 19, 88)
HSLhsl(306, 67%, 22%)
HSVhsv(306, 80%, 37%)
CMYKcmyk(0%, 80%, 7.4%, 62.7%)
CIE-LABlab(22.32, 41.53, -22.87)
CIE-LCHlch(22.32, 47.41, 331.16°)
OKLaboklab(34.82% 0.1193 -0.0629)
OKLCHoklch(34.82% 0.135 332.2)
XYZxyz(6.7137, 3.6038, 9.5726)
Luminance0.0360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1358 #135F1A
analogous
#40135F #5F1358 #5F1332
triadic
#5F1358 #585F13 #13585F
tetradic
#5F1358 #5F4013 #135F1A #13325F
square
#5F1358 #5F4013 #135F1A #13325F
split-complementary
#5F1358 #325F13 #135F40
monochromatic
#1A0518 #2C0929 #5F1358 #921D87 #C527B6

Accessibility & contrast

On white

12.21
#5F1358 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#5F1358 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1358
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1358#FFFFFF#000000##FFFFFF
##5F13581.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2F5A
Deuteranopia (green-blind)
#2C3956
Tritanopia (blue-blind)
#631C34
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1358;
/* rgb */ color: rgb(95, 19, 88);
/* oklch */ color: oklch(34.8% 0.135 332.2);
Tailwind
colors: {
  custom: {
    50: '#8f5a87',
    500: '#5f1358',
    950: '#000000',
  },
}
SCSS
$custom: #5f1358;
$custom-light: #8f5a87;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1358",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 88
  },
  "hsl": {
    "h": 305.526,
    "s": 66.667,
    "l": 22.353
  },
  "oklch": {
    "l": 0.34817,
    "c": 0.13485,
    "h": 332.2
  },
  "luminance": 0.03603
}

Semantic roles & 50–950 ramp

primary
#5F1358
secondary
#379740
accent
#EA4E3E
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1358

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

Preview Lab → · Contrast checker → · Palette generator →

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