#5F1160#5F1160

#5F1160 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.144 H 327.5°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).

Color values

HEX#5F1160
RGBrgb(95, 17, 96)
HSLhsl(299, 70%, 22%)
HSVhsv(299, 82%, 38%)
CMYKcmyk(1%, 82.3%, 0%, 62.4%)
CIE-LABlab(22.58, 43.60, -27.76)
CIE-LCHlch(22.58, 51.69, 327.52°)
OKLaboklab(35.16% 0.1212 -0.0771)
OKLCHoklch(35.16% 0.144 327.5)
XYZxyz(7.0310, 3.6788, 11.4038)
Luminance0.0368 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1160 #126011
analogous
#381160 #5F1160 #601139
triadic
#5F1160 #605F11 #11605F
tetradic
#5F1160 #603811 #126011 #113960
square
#5F1160 #603811 #126011 #113960
split-complementary
#5F1160 #396011 #116038
monochromatic
#1A051A #2C082C #5F1160 #921A94 #C623C8

Accessibility & contrast

On white

12.10
#5F1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#5F1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1160
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1160#FFFFFF#000000##FFFFFF
##5F11601.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003062
Deuteranopia (green-blind)
#27395E
Tritanopia (blue-blind)
#621F38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f1160;
/* rgb */ color: rgb(95, 17, 96);
/* oklch */ color: oklch(35.2% 0.144 327.5);
Tailwind
colors: {
  custom: {
    50: '#905a8d',
    500: '#5f1160',
    950: '#000000',
  },
}
SCSS
$custom: #5f1160;
$custom-light: #905a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1160",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 299.241,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.35164,
    "c": 0.14359,
    "h": 327.5
  },
  "luminance": 0.03678
}

Semantic roles & 50–950 ramp

primary
#5F1160
secondary
#369934
accent
#ED3B3D
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F1160

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

Preview Lab → · Contrast checker → · Palette generator →

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