#5F167F#5F167F

#5F167F is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.9% C 0.166 H 312.5°. Best body text is #FFFFFF at 11.01:1 contrast (WCAG AA passes).

Color values

HEX#5F167F
RGBrgb(95, 22, 127)
HSLhsl(282, 70%, 29%)
HSVhsv(282, 83%, 50%)
CMYKcmyk(25.2%, 82.7%, 0%, 50.2%)
CIE-LABlab(25.38, 48.15, -43.26)
CIE-LCHlch(25.38, 64.72, 318.06°)
OKLaboklab(37.85% 0.1124 -0.1225)
OKLCHoklch(37.85% 0.166 312.5)
XYZxyz(8.8363, 4.5393, 20.4853)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F167F #367F16
analogous
#2A167F #5F167F #7F166B
triadic
#5F167F #7F5F16 #167F5F
tetradic
#5F167F #7F2A16 #367F16 #166B7F
square
#5F167F #7F2A16 #367F16 #166B7F
split-complementary
#5F167F #6B7F16 #167F2A
monochromatic
#14051A #380D4B #5F167F #861FB3 #A934DC

Accessibility & contrast

On white

11.01
#5F167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#5F167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F167F
11.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F167F#FFFFFF#000000##FFFFFF
##5F167F1.0011.011.9111.01
#FFFFFF11.011.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#023E7D
Tritanopia (blue-blind)
#5B304B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f167f;
/* rgb */ color: rgb(95, 22, 127);
/* oklch */ color: oklch(37.9% 0.166 312.5);
Tailwind
colors: {
  custom: {
    50: '#915ea5',
    500: '#5f167f',
    950: '#000000',
  },
}
SCSS
$custom: #5f167f;
$custom-light: #915ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f167f",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 281.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3785,
    "c": 0.16628,
    "h": 312.5
  },
  "luminance": 0.04539
}

Semantic roles & 50–950 ramp

primary
#5F167F
secondary
#61B43D
accent
#ED3B71
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F167F

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

Preview Lab → · Contrast checker → · Palette generator →

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