#5F117F#5F117F

#5F117F is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.171 H 312.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5F117F
RGBrgb(95, 17, 127)
HSLhsl(283, 76%, 28%)
HSVhsv(283, 87%, 50%)
CMYKcmyk(25.2%, 86.6%, 0%, 50.2%)
CIE-LABlab(24.85, 49.70, -44.12)
CIE-LCHlch(24.85, 66.46, 318.40°)
OKLaboklab(37.48% 0.1162 -0.125)
OKLCHoklch(37.48% 0.171 312.9)
XYZxyz(8.7498, 4.3664, 20.4564)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F117F #317F11
analogous
#28117F #5F117F #7F1168
triadic
#5F117F #7F5F11 #117F5F
tetradic
#5F117F #7F2811 #317F11 #11687F
square
#5F117F #7F2811 #317F11 #11687F
split-complementary
#5F117F #687F11 #117F28
monochromatic
#14041B #370A49 #5F117F #8718B5 #AC28E2

Accessibility & contrast

On white

11.21
#5F117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F117F
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F117F#FFFFFF#000000##FFFFFF
##5F117F1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#003C7D
Tritanopia (blue-blind)
#5B2E4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f117f;
/* rgb */ color: rgb(95, 17, 127);
/* oklch */ color: oklch(37.5% 0.171 312.9);
Tailwind
colors: {
  custom: {
    50: '#915ca5',
    500: '#5f117f',
    950: '#000000',
  },
}
SCSS
$custom: #5f117f;
$custom-light: #915ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f117f",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 282.545,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37478,
    "c": 0.17067,
    "h": 312.9
  },
  "luminance": 0.04366
}

Semantic roles & 50–950 ramp

primary
#5F117F
secondary
#5CB537
accent
#F3356C
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5F117F

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

Preview Lab → · Contrast checker → · Palette generator →

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