#5F137D#5F137D

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

Color values

HEX#5F137D
RGBrgb(95, 19, 125)
HSLhsl(283, 74%, 28%)
HSVhsv(283, 85%, 49%)
CMYKcmyk(24%, 84.8%, 0%, 51%)
CIE-LABlab(24.89, 48.69, -42.79)
CIE-LCHlch(24.89, 64.82, 318.69°)
OKLaboklab(37.46% 0.1153 -0.1211)
OKLCHoklch(37.46% 0.167 313.6)
XYZxyz(8.6532, 4.3796, 19.7876)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F137D #317D13
analogous
#2A137D #5F137D #7D1366
triadic
#5F137D #7D5F13 #137D5F
tetradic
#5F137D #7D2A13 #317D13 #13667D
square
#5F137D #7D2A13 #317D13 #13667D
split-complementary
#5F137D #667D13 #137D2A
monochromatic
#14041B #370B48 #5F137D #871BB2 #AC2CDF

Accessibility & contrast

On white

11.20
#5F137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F137D
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F137D#FFFFFF#000000##FFFFFF
##5F137D1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#5C2E49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f137d;
/* rgb */ color: rgb(95, 19, 125);
/* oklch */ color: oklch(37.5% 0.167 313.6);
Tailwind
colors: {
  custom: {
    50: '#915ca3',
    500: '#5f137d',
    950: '#000000',
  },
}
SCSS
$custom: #5f137d;
$custom-light: #915ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f137d",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 283.019,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37457,
    "c": 0.16718,
    "h": 313.6
  },
  "luminance": 0.04379
}

Semantic roles & 50–950 ramp

primary
#5F137D
secondary
#5CB339
accent
#F0386C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F137D

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

Preview Lab → · Contrast checker → · Palette generator →

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