#5F167D#5F167D

#5F167D is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.7% C 0.164 H 313.4°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#5F167D
RGBrgb(95, 22, 125)
HSLhsl(283, 70%, 29%)
HSVhsv(283, 82%, 49%)
CMYKcmyk(24%, 82.4%, 0%, 51%)
CIE-LABlab(25.22, 47.72, -42.25)
CIE-LCHlch(25.22, 63.73, 318.48°)
OKLaboklab(37.69% 0.1129 -0.1195)
OKLCHoklch(37.69% 0.164 313.4)
XYZxyz(8.7072, 4.4877, 19.8056)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F167D #347D16
analogous
#2C167D #5F167D #7D1668
triadic
#5F167D #7D5F16 #167D5F
tetradic
#5F167D #7D2C16 #347D16 #16687D
square
#5F167D #7D2C16 #347D16 #16687D
split-complementary
#5F167D #687D16 #167D2C
monochromatic
#14051A #370D49 #5F167D #871FB1 #AA32DB

Accessibility & contrast

On white

11.07
#5F167D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#5F167D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F167D
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F167D#FFFFFF#000000##FFFFFF
##5F167D1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#073D7B
Tritanopia (blue-blind)
#5C2F4A
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f167d;
/* rgb */ color: rgb(95, 22, 125);
/* oklch */ color: oklch(37.7% 0.164 313.4);
Tailwind
colors: {
  custom: {
    50: '#905da3',
    500: '#5f167d',
    950: '#000000',
  },
}
SCSS
$custom: #5f167d;
$custom-light: #905da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f167d",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 282.524,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3769,
    "c": 0.16441,
    "h": 313.4
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#5F167D
secondary
#5FB23D
accent
#ED3B6F
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F167D

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

Preview Lab → · Contrast checker → · Palette generator →

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