#5F137C#5F137C

#5F137C is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.166 H 314.0°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#5F137C
RGBrgb(95, 19, 124)
HSLhsl(283, 73%, 28%)
HSVhsv(283, 85%, 49%)
CMYKcmyk(23.4%, 84.7%, 0%, 51.4%)
CIE-LABlab(24.81, 48.48, -42.28)
CIE-LCHlch(24.81, 64.32, 318.90°)
OKLaboklab(37.38% 0.1155 -0.1196)
OKLCHoklch(37.38% 0.166 314)
XYZxyz(8.5896, 4.3542, 19.4528)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F137C #307C13
analogous
#2B137C #5F137C #7C1364
triadic
#5F137C #7C5F13 #137C5F
tetradic
#5F137C #7C2B13 #307C13 #13647C
square
#5F137C #7C2B13 #307C13 #13647C
split-complementary
#5F137C #647C13 #137C2B
monochromatic
#14041B #360B47 #5F137C #881BB1 #AD2BDF

Accessibility & contrast

On white

11.23
#5F137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F137C
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F137C#FFFFFF#000000##FFFFFF
##5F137C1.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#063D7A
Tritanopia (blue-blind)
#5C2E49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f137c;
/* rgb */ color: rgb(95, 19, 124);
/* oklch */ color: oklch(37.4% 0.166 314.0);
Tailwind
colors: {
  custom: {
    50: '#915ca3',
    500: '#5f137c',
    950: '#000000',
  },
}
SCSS
$custom: #5f137c;
$custom-light: #915ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f137c",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 283.429,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37376,
    "c": 0.16627,
    "h": 314
  },
  "luminance": 0.04354
}

Semantic roles & 50–950 ramp

primary
#5F137C
secondary
#5AB239
accent
#F0386B
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F137C

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

Preview Lab → · Contrast checker → · Palette generator →

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