#5F163F#5F163F

#5F163F is a dark, moderate pink. Relative luminance 0.034; OKLCH L 33.8% C 0.113 H 350.4°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#5F163F
RGBrgb(95, 22, 63)
HSLhsl(326, 62%, 23%)
HSVhsv(326, 77%, 37%)
CMYKcmyk(0%, 76.8%, 33.7%, 62.7%)
CIE-LABlab(21.45, 36.57, -7.24)
CIE-LCHlch(21.45, 37.28, 348.81°)
OKLaboklab(33.78% 0.1117 -0.0188)
OKLCHoklch(33.78% 0.113 350.4)
XYZxyz(5.9037, 3.3663, 5.0405)
Luminance0.0337 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F163F #165F36
analogous
#5A165F #5F163F #5F161B
triadic
#5F163F #3F5F16 #163F5F
tetradic
#5F163F #5F5A16 #165F36 #161B5F
square
#5F163F #5F5A16 #165F36 #161B5F
split-complementary
#5F163F #1B5F16 #165F5A
monochromatic
#190610 #2D0A1E #5F163F #912260 #C22D81

Accessibility & contrast

On white

12.55
#5F163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#5F163F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F163F
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F163F#FFFFFF#000000##FFFFFF
##5F163F1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222B40
Deuteranopia (green-blind)
#37383D
Tritanopia (blue-blind)
#661228
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5f163f;
/* rgb */ color: rgb(95, 22, 63);
/* oklch */ color: oklch(33.8% 0.113 350.4);
Tailwind
colors: {
  custom: {
    50: '#905b74',
    500: '#5f163f',
    950: '#000000',
  },
}
SCSS
$custom: #5f163f;
$custom-light: #905b74;
$custom-dark: #000000;
JSON
{
  "hex": "#5f163f",
  "rgb": {
    "r": 95,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 326.301,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.33785,
    "c": 0.11328,
    "h": 350.4
  },
  "luminance": 0.03366
}

Semantic roles & 50–950 ramp

primary
#5F163F
secondary
#3B9663
accent
#E58A42
background
#F9F5F7
surface
#F1E9ED
border
#CBC5C8
text
#0D0408
muted
#7E797B

Preview Lab

Preview with #5F163F

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

Preview Lab → · Contrast checker → · Palette generator →

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