#5F165D#5F165D

#5F165D is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.135 H 329.2°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#5F165D
RGBrgb(95, 22, 93)
HSLhsl(302, 62%, 23%)
HSVhsv(302, 77%, 37%)
CMYKcmyk(0%, 76.8%, 2.1%, 62.7%)
CIE-LABlab(22.99, 41.34, -25.12)
CIE-LCHlch(22.99, 48.38, 328.71°)
OKLaboklab(35.4% 0.1163 -0.0694)
OKLCHoklch(35.4% 0.135 329.2)
XYZxyz(6.9820, 3.7976, 10.7191)
Luminance0.0380 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F165D #165F18
analogous
#3C165F #5F165D #5F1638
triadic
#5F165D #5D5F16 #165D5F
tetradic
#5F165D #5F3C16 #165F18 #16385F
square
#5F165D #5F3C16 #165F18 #16385F
split-complementary
#5F165D #385F16 #165F3C
monochromatic
#190618 #2D0A2C #5F165D #91228E #C22DBE

Accessibility & contrast

On white

11.94
#5F165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F165D
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F165D#FFFFFF#000000##FFFFFF
##5F165D1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B315F
Deuteranopia (green-blind)
#2B3A5B
Tritanopia (blue-blind)
#632038
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f165d;
/* rgb */ color: rgb(95, 22, 93);
/* oklch */ color: oklch(35.4% 0.135 329.2);
Tailwind
colors: {
  custom: {
    50: '#8f5c8b',
    500: '#5f165d',
    950: '#000000',
  },
}
SCSS
$custom: #5f165d;
$custom-light: #8f5c8b;
$custom-dark: #000000;
JSON
{
  "hex": "#5f165d",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 301.644,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35397,
    "c": 0.13548,
    "h": 329.2
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

primary
#5F165D
secondary
#3B963D
accent
#E54742
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F165D

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

Preview Lab → · Contrast checker → · Palette generator →

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