#5F165C#5F165C

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

Color values

HEX#5F165C
RGBrgb(95, 22, 92)
HSLhsl(302, 62%, 23%)
HSVhsv(302, 77%, 37%)
CMYKcmyk(0%, 76.8%, 3.2%, 62.7%)
CIE-LABlab(22.93, 41.16, -24.56)
CIE-LCHlch(22.93, 47.93, 329.18°)
OKLaboklab(35.33% 0.1163 -0.0678)
OKLCHoklch(35.33% 0.135 329.8)
XYZxyz(6.9379, 3.7799, 10.4873)
Luminance0.0378 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F165C #165F19
analogous
#3D165F #5F165C #5F1637
triadic
#5F165C #5C5F16 #165C5F
tetradic
#5F165C #5F3D16 #165F19 #16375F
square
#5F165C #5F3D16 #165F19 #16375F
split-complementary
#5F165C #375F16 #165F3D
monochromatic
#190618 #2D0A2C #5F165C #91228C #C22DBC

Accessibility & contrast

On white

11.96
#5F165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F165C
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F165C#FFFFFF#000000##FFFFFF
##5F165C1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D305E
Deuteranopia (green-blind)
#2B3A5A
Tritanopia (blue-blind)
#632037
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f165c;
/* rgb */ color: rgb(95, 22, 92);
/* oklch */ color: oklch(35.3% 0.135 329.8);
Tailwind
colors: {
  custom: {
    50: '#8f5c8a',
    500: '#5f165c',
    950: '#000000',
  },
}
SCSS
$custom: #5f165c;
$custom-light: #8f5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f165c",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 302.466,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35334,
    "c": 0.13463,
    "h": 329.8
  },
  "luminance": 0.03779
}

Semantic roles & 50–950 ramp

primary
#5F165C
secondary
#3B963F
accent
#E54942
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040C
muted
#7E797D

Preview Lab

Preview with #5F165C

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

Preview Lab → · Contrast checker → · Palette generator →

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