#5F157A#5F157A

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

Color values

HEX#5F157A
RGBrgb(95, 21, 122)
HSLhsl(284, 71%, 28%)
HSVhsv(284, 83%, 48%)
CMYKcmyk(22.1%, 82.8%, 0%, 52.2%)
CIE-LABlab(24.87, 47.41, -40.91)
CIE-LCHlch(24.87, 62.62, 319.21°)
OKLaboklab(37.37% 0.1144 -0.1156)
OKLCHoklch(37.37% 0.163 314.7)
XYZxyz(8.4997, 4.3747, 18.8052)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F157A #307A15
analogous
#2C157A #5F157A #7A1562
triadic
#5F157A #7A5F15 #157A5F
tetradic
#5F157A #7A2C15 #307A15 #15627A
square
#5F157A #7A2C15 #307A15 #15627A
split-complementary
#5F157A #627A15 #157A2C
monochromatic
#14041A #360C46 #5F157A #881EAE #AD2EDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5F157A#FFFFFF#000000##FFFFFF
##5F157A1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377D
Deuteranopia (green-blind)
#0D3D78
Tritanopia (blue-blind)
#5D2D48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f157a;
/* rgb */ color: rgb(95, 21, 122);
/* oklch */ color: oklch(37.4% 0.163 314.7);
Tailwind
colors: {
  custom: {
    50: '#905da1',
    500: '#5f157a',
    950: '#000000',
  },
}
SCSS
$custom: #5f157a;
$custom-light: #905da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f157a",
  "rgb": {
    "r": 95,
    "g": 21,
    "b": 122
  },
  "hsl": {
    "h": 283.96,
    "s": 70.629,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37372,
    "c": 0.16259,
    "h": 314.7
  },
  "luminance": 0.04374
}

Semantic roles & 50–950 ramp

primary
#5F157A
secondary
#5AAF3B
accent
#ED3A6A
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F157A

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

Preview Lab → · Contrast checker → · Palette generator →

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