#5F117D#5F117D

#5F117D is a dark, vivid purple. Relative luminance 0.043; OKLCH L 37.3% C 0.169 H 313.7°. Best body text is #FFFFFF at 11.27:1 contrast (WCAG AA passes).

Color values

HEX#5F117D
RGBrgb(95, 17, 125)
HSLhsl(283, 76%, 28%)
HSVhsv(283, 86%, 49%)
CMYKcmyk(24%, 86.4%, 0%, 51%)
CIE-LABlab(24.69, 49.28, -43.12)
CIE-LCHlch(24.69, 65.48, 318.82°)
OKLaboklab(37.32% 0.1167 -0.122)
OKLCHoklch(37.32% 0.169 313.7)
XYZxyz(8.6208, 4.3148, 19.7768)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F117D #2F7D11
analogous
#29117D #5F117D #7D1165
triadic
#5F117D #7D5F11 #117D5F
tetradic
#5F117D #7D2911 #2F7D11 #11657D
square
#5F117D #7D2911 #2F7D11 #11657D
split-complementary
#5F117D #657D11 #117D29
monochromatic
#14041B #360A47 #5F117D #8818B3 #AE27E2

Accessibility & contrast

On white

11.27
#5F117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#5F117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F117D
11.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F117D#FFFFFF#000000##FFFFFF
##5F117D1.0011.271.8611.27
#FFFFFF11.271.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#003C7B
Tritanopia (blue-blind)
#5C2D49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f117d;
/* rgb */ color: rgb(95, 17, 125);
/* oklch */ color: oklch(37.3% 0.169 313.7);
Tailwind
colors: {
  custom: {
    50: '#915ca3',
    500: '#5f117d',
    950: '#000000',
  },
}
SCSS
$custom: #5f117d;
$custom-light: #915ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f117d",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 283.333,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37315,
    "c": 0.16887,
    "h": 313.7
  },
  "luminance": 0.04314
}

Semantic roles & 50–950 ramp

primary
#5F117D
secondary
#59B337
accent
#F3356A
background
#F9F5FA
surface
#F2E9F4
border
#CCC5CE
text
#0D040F
muted
#7E797F

Preview Lab

Preview with #5F117D

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

Preview Lab → · Contrast checker → · Palette generator →

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