#5F137B#5F137B

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

Color values

HEX#5F137B
RGBrgb(95, 19, 123)
HSLhsl(284, 73%, 28%)
HSVhsv(284, 85%, 48%)
CMYKcmyk(22.8%, 84.6%, 0%, 51.8%)
CIE-LABlab(24.73, 48.27, -41.77)
CIE-LCHlch(24.73, 63.83, 319.12°)
OKLaboklab(37.3% 0.1157 -0.1181)
OKLCHoklch(37.3% 0.165 314.4)
XYZxyz(8.5267, 4.3290, 19.1215)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F137B #2F7B13
analogous
#2B137B #5F137B #7B1363
triadic
#5F137B #7B5F13 #137B5F
tetradic
#5F137B #7B2B13 #2F7B13 #13637B
square
#5F137B #7B2B13 #2F7B13 #13637B
split-complementary
#5F137B #637B13 #137B2B
monochromatic
#14041B #360B46 #5F137B #881BB0 #AE2ADE

Accessibility & contrast

On white

11.26
#5F137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F137B
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F137B#FFFFFF#000000##FFFFFF
##5F137B1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#083C79
Tritanopia (blue-blind)
#5C2D48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f137b;
/* rgb */ color: rgb(95, 19, 123);
/* oklch */ color: oklch(37.3% 0.165 314.4);
Tailwind
colors: {
  custom: {
    50: '#905ca2',
    500: '#5f137b',
    950: '#000000',
  },
}
SCSS
$custom: #5f137b;
$custom-light: #905ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f137b",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 283.846,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.37296,
    "c": 0.16536,
    "h": 314.4
  },
  "luminance": 0.04329
}

Semantic roles & 50–950 ramp

primary
#5F137B
secondary
#59B139
accent
#F03869
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F137B

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

Preview Lab → · Contrast checker → · Palette generator →

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