#5F116F#5F116F

#5F116F is a dark, vivid purple. Relative luminance 0.040; OKLCH L 36.2% C 0.156 H 319.9°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#5F116F
RGBrgb(95, 17, 111)
HSLhsl(290, 73%, 25%)
HSVhsv(290, 85%, 44%)
CMYKcmyk(14.4%, 84.7%, 0%, 56.5%)
CIE-LABlab(23.61, 46.44, -35.90)
CIE-LCHlch(23.61, 58.69, 322.30°)
OKLaboklab(36.22% 0.1196 -0.1008)
OKLCHoklch(36.22% 0.156 319.9)
XYZxyz(7.7886, 3.9819, 15.3942)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F116F #216F11
analogous
#30116F #5F116F #6F1150
triadic
#5F116F #6F5F11 #116F5F
tetradic
#5F116F #6F3011 #216F11 #11506F
square
#5F116F #6F3011 #216F11 #11506F
split-complementary
#5F116F #506F11 #116F30
monochromatic
#17041B #32093A #5F116F #8C19A4 #BA21D9

Accessibility & contrast

On white

11.69
#5F116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#5F116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F116F
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F116F#FFFFFF#000000##FFFFFF
##5F116F1.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#1A3B6D
Tritanopia (blue-blind)
#5F2641
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f116f;
/* rgb */ color: rgb(95, 17, 111);
/* oklch */ color: oklch(36.2% 0.156 319.9);
Tailwind
colors: {
  custom: {
    50: '#905b99',
    500: '#5f116f',
    950: '#000000',
  },
}
SCSS
$custom: #5f116f;
$custom-light: #905b99;
$custom-dark: #000000;
JSON
{
  "hex": "#5f116f",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 289.787,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.15645,
    "h": 319.9
  },
  "luminance": 0.03981
}

Semantic roles & 50–950 ramp

primary
#5F116F
secondary
#49A635
accent
#F03857
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F116F

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

Preview Lab → · Contrast checker → · Palette generator →

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