#5F1154#5F1154

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

Color values

HEX#5F1154
RGBrgb(95, 17, 84)
HSLhsl(308, 70%, 22%)
HSVhsv(308, 82%, 37%)
CMYKcmyk(0%, 82.1%, 11.6%, 62.7%)
CIE-LABlab(21.85, 41.52, -20.92)
CIE-LCHlch(21.85, 46.50, 333.26°)
OKLaboklab(34.41% 0.121 -0.0573)
OKLCHoklch(34.41% 0.134 334.7)
XYZxyz(6.5201, 3.4745, 8.7130)
Luminance0.0347 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1154 #115F1C
analogous
#43115F #5F1154 #5F112D
triadic
#5F1154 #545F11 #11545F
tetradic
#5F1154 #5F4311 #115F1C #112D5F
square
#5F1154 #5F4311 #115F1C #112D5F
split-complementary
#5F1154 #2D5F11 #115F43
monochromatic
#1A0517 #2B0826 #5F1154 #931A82 #C724B0

Accessibility & contrast

On white

12.39
#5F1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#5F1154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1154
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1154#FFFFFF#000000##FFFFFF
##5F11541.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102D56
Deuteranopia (green-blind)
#2D3852
Tritanopia (blue-blind)
#641832
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #5f1154;
/* rgb */ color: rgb(95, 17, 84);
/* oklch */ color: oklch(34.4% 0.134 334.7);
Tailwind
colors: {
  custom: {
    50: '#8f5984',
    500: '#5f1154',
    950: '#000000',
  },
}
SCSS
$custom: #5f1154;
$custom-light: #8f5984;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1154",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 308.462,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.34409,
    "c": 0.13389,
    "h": 334.7
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#5F1154
secondary
#349842
accent
#EC543B
background
#F9F5F8
surface
#F1E9EF
border
#CBC5CA
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F1154

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

Preview Lab → · Contrast checker → · Palette generator →

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