#5F167C#5F167C

#5F167C is a dark, vivid purple. Relative luminance 0.045; OKLCH L 37.6% C 0.163 H 313.8°. Best body text is #FFFFFF at 11.10:1 contrast (WCAG AA passes).

Color values

HEX#5F167C
RGBrgb(95, 22, 124)
HSLhsl(283, 70%, 29%)
HSVhsv(283, 82%, 49%)
CMYKcmyk(23.4%, 82.3%, 0%, 51.4%)
CIE-LABlab(25.14, 47.50, -41.74)
CIE-LCHlch(25.14, 63.24, 318.70°)
OKLaboklab(37.61% 0.1131 -0.118)
OKLCHoklch(37.61% 0.163 313.8)
XYZxyz(8.6437, 4.4622, 19.4709)
Luminance0.0446 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F167C #337C16
analogous
#2C167C #5F167C #7C1666
triadic
#5F167C #7C5F16 #167C5F
tetradic
#5F167C #7C2C16 #337C16 #16667C
square
#5F167C #7C2C16 #337C16 #16667C
split-complementary
#5F167C #667C16 #167C2C
monochromatic
#14051A #370D48 #5F167C #871FB0 #AB32DB

Accessibility & contrast

On white

11.10
#5F167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F167C
11.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F167C#FFFFFF#000000##FFFFFF
##5F167C1.0011.101.8911.10
#FFFFFF11.101.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#0A3D7A
Tritanopia (blue-blind)
#5C2F49
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #5f167c;
/* rgb */ color: rgb(95, 22, 124);
/* oklch */ color: oklch(37.6% 0.163 313.8);
Tailwind
colors: {
  custom: {
    50: '#905da3',
    500: '#5f167c',
    950: '#000000',
  },
}
SCSS
$custom: #5f167c;
$custom-light: #905da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f167c",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 282.941,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.37611,
    "c": 0.16348,
    "h": 313.8
  },
  "luminance": 0.04462
}

Semantic roles & 50–950 ramp

primary
#5F167C
secondary
#5EB13D
accent
#ED3B6E
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F167C

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

Preview Lab → · Contrast checker → · Palette generator →

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