#5F165B#5F165B

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

Color values

HEX#5F165B
RGBrgb(95, 22, 91)
HSLhsl(303, 62%, 23%)
HSVhsv(303, 77%, 37%)
CMYKcmyk(0%, 76.8%, 4.2%, 62.7%)
CIE-LABlab(22.87, 40.98, -23.99)
CIE-LCHlch(22.87, 47.48, 329.66°)
OKLaboklab(35.27% 0.1163 -0.0662)
OKLCHoklch(35.27% 0.134 330.4)
XYZxyz(6.8945, 3.7626, 10.2586)
Luminance0.0376 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F165B #165F1A
analogous
#3E165F #5F165B #5F1636
triadic
#5F165B #5B5F16 #165B5F
tetradic
#5F165B #5F3E16 #165F1A #16365F
square
#5F165B #5F3E16 #165F1A #16365F
split-complementary
#5F165B #365F16 #165F3E
monochromatic
#190618 #2D0A2B #5F165B #91228B #C22DBA

Accessibility & contrast

On white

11.98
#5F165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F165B
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F165B#FFFFFF#000000##FFFFFF
##5F165B1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E305D
Deuteranopia (green-blind)
#2C3A59
Tritanopia (blue-blind)
#631F37
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f165b;
/* rgb */ color: rgb(95, 22, 91);
/* oklch */ color: oklch(35.3% 0.134 330.4);
Tailwind
colors: {
  custom: {
    50: '#8f5c8a',
    500: '#5f165b',
    950: '#000000',
  },
}
SCSS
$custom: #5f165b;
$custom-light: #8f5c8a;
$custom-dark: #000000;
JSON
{
  "hex": "#5f165b",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 303.288,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.35272,
    "c": 0.13378,
    "h": 330.4
  },
  "luminance": 0.03762
}

Semantic roles & 50–950 ramp

primary
#5F165B
secondary
#3B9640
accent
#E54B42
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040B
muted
#7E797C

Preview Lab

Preview with #5F165B

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

Preview Lab → · Contrast checker → · Palette generator →

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