#5F167A#5F167A

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

Color values

HEX#5F167A
RGBrgb(95, 22, 122)
HSLhsl(284, 69%, 28%)
HSVhsv(284, 82%, 48%)
CMYKcmyk(22.1%, 82%, 0%, 52.2%)
CIE-LABlab(24.99, 47.08, -40.72)
CIE-LCHlch(24.99, 62.24, 319.14°)
OKLaboklab(37.45% 0.1135 -0.115)
OKLCHoklch(37.45% 0.162 314.6)
XYZxyz(8.5185, 4.4122, 18.8115)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F167A #317A16
analogous
#2D167A #5F167A #7A1663
triadic
#5F167A #7A5F16 #167A5F
tetradic
#5F167A #7A2D16 #317A16 #16637A
square
#5F167A #7A2D16 #317A16 #16637A
split-complementary
#5F167A #637A16 #167A2D
monochromatic
#14051A #370D46 #5F167A #871FAE #AC31DA

Accessibility & contrast

On white

11.16
#5F167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F167A
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F167A#FFFFFF#000000##FFFFFF
##5F167A1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f167a;
/* rgb */ color: rgb(95, 22, 122);
/* oklch */ color: oklch(37.5% 0.162 314.6);
Tailwind
colors: {
  custom: {
    50: '#905da1',
    500: '#5f167a',
    950: '#000000',
  },
}
SCSS
$custom: #5f167a;
$custom-light: #905da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f167a",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 283.8,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37454,
    "c": 0.16161,
    "h": 314.6
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#5F167A
secondary
#5CAF3D
accent
#EC3C6B
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F167A

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

Preview Lab → · Contrast checker → · Palette generator →

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