#5F165E#5F165E

#5F165E is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.136 H 328.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#5F165E
RGBrgb(95, 22, 94)
HSLhsl(301, 62%, 23%)
HSVhsv(301, 77%, 37%)
CMYKcmyk(0%, 76.8%, 1.1%, 62.7%)
CIE-LABlab(23.05, 41.52, -25.69)
CIE-LCHlch(23.05, 48.83, 328.26°)
OKLaboklab(35.46% 0.1164 -0.0711)
OKLCHoklch(35.46% 0.136 328.6)
XYZxyz(7.0265, 3.8154, 10.9539)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F165E #165F17
analogous
#3B165F #5F165E #5F1639
triadic
#5F165E #5E5F16 #165E5F
tetradic
#5F165E #5F3B16 #165F17 #16395F
square
#5F165E #5F3B16 #165F17 #16395F
split-complementary
#5F165E #395F16 #165F3B
monochromatic
#190619 #2D0A2D #5F165E #91228F #C22DC0

Accessibility & contrast

On white

11.91
#5F165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#5F165E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F165E
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F165E#FFFFFF#000000##FFFFFF
##5F165E1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A3160
Deuteranopia (green-blind)
#2A3A5C
Tritanopia (blue-blind)
#622138
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f165e;
/* rgb */ color: rgb(95, 22, 94);
/* oklch */ color: oklch(35.5% 0.136 328.6);
Tailwind
colors: {
  custom: {
    50: '#8f5c8c',
    500: '#5f165e',
    950: '#000000',
  },
}
SCSS
$custom: #5f165e;
$custom-light: #8f5c8c;
$custom-dark: #000000;
JSON
{
  "hex": "#5f165e",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 300.822,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3546,
    "c": 0.13634,
    "h": 328.6
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#5F165E
secondary
#3B963C
accent
#E54542
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F165E

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

Preview Lab → · Contrast checker → · Palette generator →

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