#5F137E#5F137E

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

Color values

HEX#5F137E
RGBrgb(95, 19, 126)
HSLhsl(283, 74%, 28%)
HSVhsv(283, 85%, 49%)
CMYKcmyk(24.6%, 84.9%, 0%, 50.6%)
CIE-LABlab(24.97, 48.90, -43.29)
CIE-LCHlch(24.97, 65.31, 318.48°)
OKLaboklab(37.54% 0.115 -0.1226)
OKLCHoklch(37.54% 0.168 313.2)
XYZxyz(8.7174, 4.4053, 20.1257)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F137E #327E13
analogous
#29137E #5F137E #7E1367
triadic
#5F137E #7E5F13 #137E5F
tetradic
#5F137E #7E2913 #327E13 #13677E
square
#5F137E #7E2913 #327E13 #13677E
split-complementary
#5F137E #677E13 #137E29
monochromatic
#14041B #370B49 #5F137E #871BB3 #AB2CDF

Accessibility & contrast

On white

11.16
#5F137E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F137E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F137E
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F137E#FFFFFF#000000##FFFFFF
##5F137E1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#5C2F4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f137e;
/* rgb */ color: rgb(95, 19, 126);
/* oklch */ color: oklch(37.5% 0.168 313.2);
Tailwind
colors: {
  custom: {
    50: '#915ca4',
    500: '#5f137e',
    950: '#000000',
  },
}
SCSS
$custom: #5f137e;
$custom-light: #915ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#5f137e",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 126
  },
  "hsl": {
    "h": 282.617,
    "s": 73.793,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37537,
    "c": 0.16809,
    "h": 313.2
  },
  "luminance": 0.04405
}

Semantic roles & 50–950 ramp

primary
#5F137E
secondary
#5DB439
accent
#F0376D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F137E

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

Preview Lab → · Contrast checker → · Palette generator →

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