#5F167B#5F167B

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

Color values

HEX#5F167B
RGBrgb(95, 22, 123)
HSLhsl(283, 70%, 28%)
HSVhsv(283, 82%, 48%)
CMYKcmyk(22.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(25.07, 47.29, -41.23)
CIE-LCHlch(25.07, 62.74, 318.92°)
OKLaboklab(37.53% 0.1133 -0.1165)
OKLCHoklch(37.53% 0.163 314.2)
XYZxyz(8.5808, 4.4371, 19.1395)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F167B #327B16
analogous
#2C167B #5F167B #7B1664
triadic
#5F167B #7B5F16 #167B5F
tetradic
#5F167B #7B2C16 #327B16 #16647B
square
#5F167B #7B2C16 #327B16 #16647B
split-complementary
#5F167B #647B16 #167B2C
monochromatic
#14051A #370D47 #5F167B #871FAF #AB31DA

Accessibility & contrast

On white

11.13
#5F167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#5F167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F167B
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F167B#FFFFFF#000000##FFFFFF
##5F167B1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387E
Deuteranopia (green-blind)
#0C3D79
Tritanopia (blue-blind)
#5C2E49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f167b;
/* rgb */ color: rgb(95, 22, 123);
/* oklch */ color: oklch(37.5% 0.163 314.2);
Tailwind
colors: {
  custom: {
    50: '#905da2',
    500: '#5f167b',
    950: '#000000',
  },
}
SCSS
$custom: #5f167b;
$custom-light: #905da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f167b",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 283.366,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.37532,
    "c": 0.16254,
    "h": 314.2
  },
  "luminance": 0.04437
}

Semantic roles & 50–950 ramp

primary
#5F167B
secondary
#5DB03D
accent
#EC3B6C
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F167B

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

Preview Lab → · Contrast checker → · Palette generator →

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