#5F165F#5F165F

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

Color values

HEX#5F165F
RGBrgb(95, 22, 95)
HSLhsl(300, 62%, 23%)
HSVhsv(300, 77%, 37%)
CMYKcmyk(0%, 76.8%, 0%, 62.7%)
CIE-LABlab(23.11, 41.71, -26.25)
CIE-LCHlch(23.11, 49.28, 327.81°)
OKLaboklab(35.52% 0.1164 -0.0727)
OKLCHoklch(35.52% 0.137 328)
XYZxyz(7.0717, 3.8334, 11.1917)
Luminance0.0383 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F165F #165F16
analogous
#3A165F #5F165F #5F163A
triadic
#5F165F #5F5F16 #165F5F
tetradic
#5F165F #5F3A16 #165F16 #163A5F
square
#5F165F #5F3A16 #165F16 #163A5F
split-complementary
#5F165F #3A5F16 #165F3A
monochromatic
#190619 #2D0A2D #5F165F #912291 #C22DC2

Accessibility & contrast

On white

11.89
#5F165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#5F165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F165F
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F165F#FFFFFF#000000##FFFFFF
##5F165F1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#083161
Deuteranopia (green-blind)
#2A3A5D
Tritanopia (blue-blind)
#622139
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f165f;
/* rgb */ color: rgb(95, 22, 95);
/* oklch */ color: oklch(35.5% 0.137 328.0);
Tailwind
colors: {
  custom: {
    50: '#8f5c8d',
    500: '#5f165f',
    950: '#000000',
  },
}
SCSS
$custom: #5f165f;
$custom-light: #8f5c8d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f165f",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 300,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35524,
    "c": 0.13721,
    "h": 328
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#5F165F
secondary
#3B963B
accent
#E54242
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F165F

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

Preview Lab → · Contrast checker → · Palette generator →

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