#5F157C#5F157C

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

Color values

HEX#5F157C
RGBrgb(95, 21, 124)
HSLhsl(283, 71%, 28%)
HSVhsv(283, 83%, 49%)
CMYKcmyk(23.4%, 83.1%, 0%, 51.4%)
CIE-LABlab(25.03, 47.84, -41.93)
CIE-LCHlch(25.03, 63.61, 318.77°)
OKLaboklab(37.53% 0.1139 -0.1186)
OKLCHoklch(37.53% 0.164 313.9)
XYZxyz(8.6249, 4.4248, 19.4646)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F157C #327C15
analogous
#2B157C #5F157C #7C1565
triadic
#5F157C #7C5F15 #157C5F
tetradic
#5F157C #7C2B15 #327C15 #15657C
square
#5F157C #7C2B15 #327C15 #15657C
split-complementary
#5F157C #657C15 #157C2B
monochromatic
#14041A #370C48 #5F157C #871EB0 #AB30DC

Accessibility & contrast

On white

11.14
#5F157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F157C
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F157C#FFFFFF#000000##FFFFFF
##5F157C1.0011.141.8811.14
#FFFFFF11.141.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f157c;
/* rgb */ color: rgb(95, 21, 124);
/* oklch */ color: oklch(37.5% 0.164 313.9);
Tailwind
colors: {
  custom: {
    50: '#905da3',
    500: '#5f157c',
    950: '#000000',
  },
}
SCSS
$custom: #5f157c;
$custom-light: #905da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f157c",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 283.107,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3753,
    "c": 0.16444,
    "h": 313.9
  },
  "luminance": 0.04424
}

Semantic roles & 50–950 ramp

primary
#5F157C
secondary
#5DB13C
accent
#EE3A6D
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F157C

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

Preview Lab → · Contrast checker → · Palette generator →

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