#5F1164#5F1164

#5F1164 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.147 H 325.4°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#5F1164
RGBrgb(95, 17, 100)
HSLhsl(296, 71%, 23%)
HSVhsv(296, 83%, 39%)
CMYKcmyk(5%, 83%, 0%, 60.8%)
CIE-LABlab(22.84, 44.33, -29.97)
CIE-LCHlch(22.84, 53.51, 325.94°)
OKLaboklab(35.44% 0.1209 -0.0835)
OKLCHoklch(35.44% 0.147 325.4)
XYZxyz(7.2198, 3.7544, 12.3985)
Luminance0.0375 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1164 #166411
analogous
#361164 #5F1164 #64113F
triadic
#5F1164 #645F11 #11645F
tetradic
#5F1164 #643611 #166411 #113F64
square
#5F1164 #643611 #166411 #113F64
split-complementary
#5F1164 #3F6411 #116436
monochromatic
#19041A #2D0830 #5F1164 #911A98 #C223CD

Accessibility & contrast

On white

11.99
#5F1164 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F1164 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1164
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1164#FFFFFF#000000##FFFFFF
##5F11641.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#243A62
Tritanopia (blue-blind)
#61213B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1164;
/* rgb */ color: rgb(95, 17, 100);
/* oklch */ color: oklch(35.4% 0.147 325.4);
Tailwind
colors: {
  custom: {
    50: '#905a90',
    500: '#5f1164',
    950: '#000000',
  },
}
SCSS
$custom: #5f1164;
$custom-light: #905a90;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1164",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 100
  },
  "hsl": {
    "h": 296.386,
    "s": 70.94,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35435,
    "c": 0.14696,
    "h": 325.4
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

primary
#5F1164
secondary
#3B9C35
accent
#EE3A45
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1164

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

Preview Lab → · Contrast checker → · Palette generator →

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