#5F1156#5F1156

#5F1156 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.135 H 333.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#5F1156
RGBrgb(95, 17, 86)
HSLhsl(307, 70%, 22%)
HSVhsv(307, 82%, 37%)
CMYKcmyk(0%, 82.1%, 9.5%, 62.7%)
CIE-LABlab(21.97, 41.86, -22.08)
CIE-LCHlch(21.97, 47.32, 332.18°)
OKLaboklab(34.53% 0.1211 -0.0606)
OKLCHoklch(34.53% 0.135 333.4)
XYZxyz(6.5995, 3.5063, 9.1315)
Luminance0.0351 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1156 #115F1A
analogous
#41115F #5F1156 #5F112F
triadic
#5F1156 #565F11 #11565F
tetradic
#5F1156 #5F4111 #115F1A #112F5F
square
#5F1156 #5F4111 #115F1A #112F5F
split-complementary
#5F1156 #2F5F11 #115F41
monochromatic
#1A0517 #2B0827 #5F1156 #931A85 #C724B4

Accessibility & contrast

On white

12.34
#5F1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#5F1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1156
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1156#FFFFFF#000000##FFFFFF
##5F11561.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2D58
Deuteranopia (green-blind)
#2C3954
Tritanopia (blue-blind)
#641933
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #5f1156;
/* rgb */ color: rgb(95, 17, 86);
/* oklch */ color: oklch(34.5% 0.135 333.4);
Tailwind
colors: {
  custom: {
    50: '#8f5986',
    500: '#5f1156',
    950: '#000000',
  },
}
SCSS
$custom: #5f1156;
$custom-light: #8f5986;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1156",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 306.923,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34529,
    "c": 0.13546,
    "h": 333.4
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#5F1156
secondary
#349840
accent
#EC503B
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1156

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

Preview Lab → · Contrast checker → · Palette generator →

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