#5A0D27#5A0D27

#5A0D27 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.1% C 0.109 H 6.9°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#5A0D27
RGBrgb(90, 13, 39)
HSLhsl(340, 75%, 20%)
HSVhsv(340, 86%, 35%)
CMYKcmyk(0%, 85.6%, 56.7%, 64.7%)
CIE-LABlab(18.40, 35.58, 5.06)
CIE-LCHlch(18.40, 35.94, 8.09°)
OKLaboklab(31.08% 0.1086 0.0131)
OKLCHoklch(31.08% 0.109 6.9)
XYZxyz(4.7270, 2.6087, 2.1737)
Luminance0.0261 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0D27 #0D5A40
analogous
#5A0D4D #5A0D27 #5A190D
triadic
#5A0D27 #275A0D #0D275A
tetradic
#5A0D27 #4D5A0D #0D5A40 #190D5A
square
#5A0D27 #4D5A0D #0D5A40 #190D5A
split-complementary
#5A0D27 #0D5A19 #0D4D5A
monochromatic
#1B040C #250510 #5A0D27 #8F153E #C51C55

Accessibility & contrast

On white

13.80
#5A0D27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#5A0D27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0D27
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0D27#FFFFFF#000000##FFFFFF
##5A0D271.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222328
Deuteranopia (green-blind)
#363225
Tritanopia (blue-blind)
#630019
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0d27;
/* rgb */ color: rgb(90, 13, 39);
/* oklch */ color: oklch(31.1% 0.109 6.9);
Tailwind
colors: {
  custom: {
    50: '#8e5560',
    500: '#5a0d27',
    950: '#000000',
  },
}
SCSS
$custom: #5a0d27;
$custom-light: #8e5560;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0d27",
  "rgb": {
    "r": 90,
    "g": 13,
    "b": 39
  },
  "hsl": {
    "h": 339.74,
    "s": 74.757,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31075,
    "c": 0.10937,
    "h": 6.9
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#5A0D27
secondary
#2E9472
accent
#F1B236
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A0D27

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

Preview Lab → · Contrast checker → · Palette generator →

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