#5F165A#5F165A

#5F165A is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.2% C 0.133 H 331.0°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#5F165A
RGBrgb(95, 22, 90)
HSLhsl(304, 62%, 23%)
HSVhsv(304, 77%, 37%)
CMYKcmyk(0%, 76.8%, 5.3%, 62.7%)
CIE-LABlab(22.81, 40.80, -23.42)
CIE-LCHlch(22.81, 47.05, 330.15°)
OKLaboklab(35.21% 0.1162 -0.0645)
OKLCHoklch(35.21% 0.133 331)
XYZxyz(6.8517, 3.7454, 10.0330)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F165A #165F1B
analogous
#3F165F #5F165A #5F1635
triadic
#5F165A #5A5F16 #165A5F
tetradic
#5F165A #5F3F16 #165F1B #16355F
square
#5F165A #5F3F16 #165F1B #16355F
split-complementary
#5F165A #355F16 #165F3F
monochromatic
#190618 #2D0A2B #5F165A #912289 #C22DB8

Accessibility & contrast

On white

12.01
#5F165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F165A
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F165A#FFFFFF#000000##FFFFFF
##5F165A1.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F305C
Deuteranopia (green-blind)
#2C3A58
Tritanopia (blue-blind)
#631F36
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #5f165a;
/* rgb */ color: rgb(95, 22, 90);
/* oklch */ color: oklch(35.2% 0.133 331.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c89',
    500: '#5f165a',
    950: '#000000',
  },
}
SCSS
$custom: #5f165a;
$custom-light: #8f5c89;
$custom-dark: #000000;
JSON
{
  "hex": "#5f165a",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 304.11,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.3521,
    "c": 0.13294,
    "h": 331
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#5F165A
secondary
#3B9641
accent
#E54E42
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F165A

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

Preview Lab → · Contrast checker → · Palette generator →

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