#5A183F#5A183F

#5A183F is a dark, moderate pink. Relative luminance 0.032; OKLCH L 33.1% C 0.106 H 348.0°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#5A183F
RGBrgb(90, 24, 63)
HSLhsl(325, 58%, 22%)
HSVhsv(325, 73%, 35%)
CMYKcmyk(0%, 73.3%, 30%, 64.7%)
CIE-LABlab(20.78, 34.18, -8.36)
CIE-LCHlch(20.78, 35.19, 346.26°)
OKLaboklab(33.1% 0.1038 -0.022)
OKLCHoklch(33.1% 0.106 348)
XYZxyz(5.4405, 3.1864, 5.0302)
Luminance0.0319 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A183F #185A33
analogous
#54185A #5A183F #5A181E
triadic
#5A183F #3F5A18 #183F5A
tetradic
#5A183F #5A5418 #185A33 #181E5A
square
#5A183F #5A5418 #185A33 #181E5A
split-complementary
#5A183F #1E5A18 #185A54
monochromatic
#180611 #2A0B1D #5A183F #8A2561 #BB3283

Accessibility & contrast

On white

12.83
#5A183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A183F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A183F
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A183F#FFFFFF#000000##FFFFFF
##5A183F1.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212B40
Deuteranopia (green-blind)
#34363D
Tritanopia (blue-blind)
#611629
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a183f;
/* rgb */ color: rgb(90, 24, 63);
/* oklch */ color: oklch(33.1% 0.106 348.0);
Tailwind
colors: {
  custom: {
    50: '#8c5b74',
    500: '#5a183f',
    950: '#000000',
  },
}
SCSS
$custom: #5a183f;
$custom-light: #8c5b74;
$custom-dark: #000000;
JSON
{
  "hex": "#5a183f",
  "rgb": {
    "r": 90,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 324.545,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33102,
    "c": 0.1061,
    "h": 348
  },
  "luminance": 0.03186
}

Semantic roles & 50–950 ramp

primary
#5A183F
secondary
#3D915F
accent
#E18647
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A183F

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

Preview Lab → · Contrast checker → · Palette generator →

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