#5F147D#5F147D

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

Color values

HEX#5F147D
RGBrgb(95, 20, 125)
HSLhsl(283, 72%, 28%)
HSVhsv(283, 84%, 49%)
CMYKcmyk(24%, 84%, 0%, 51%)
CIE-LABlab(25.00, 48.37, -42.61)
CIE-LCHlch(25.00, 64.47, 318.62°)
OKLaboklab(37.53% 0.1145 -0.1206)
OKLCHoklch(37.53% 0.166 313.5)
XYZxyz(8.6705, 4.4142, 19.7933)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F147D #327D14
analogous
#2A147D #5F147D #7D1466
triadic
#5F147D #7D5F14 #147D5F
tetradic
#5F147D #7D2A14 #327D14 #14667D
square
#5F147D #7D2A14 #327D14 #14667D
split-complementary
#5F147D #667D14 #147D2A
monochromatic
#14041A #370C48 #5F147D #871CB2 #AB2EDE

Accessibility & contrast

On white

11.15
#5F147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F147D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F147D#FFFFFF#000000##FFFFFF
##5F147D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#043D7B
Tritanopia (blue-blind)
#5C2E4A
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f147d;
/* rgb */ color: rgb(95, 20, 125);
/* oklch */ color: oklch(37.5% 0.166 313.5);
Tailwind
colors: {
  custom: {
    50: '#915da3',
    500: '#5f147d',
    950: '#000000',
  },
}
SCSS
$custom: #5f147d;
$custom-light: #915da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f147d",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 282.857,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37532,
    "c": 0.16628,
    "h": 313.5
  },
  "luminance": 0.04414
}

Semantic roles & 50–950 ramp

primary
#5F147D
secondary
#5DB23A
accent
#EF396D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F147D

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

Preview Lab → · Contrast checker → · Palette generator →

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