#5A0F2C#5A0F2C

#5A0F2C is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.4% C 0.109 H 2.9°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#5A0F2C
RGBrgb(90, 15, 44)
HSLhsl(337, 71%, 21%)
HSVhsv(337, 83%, 35%)
CMYKcmyk(0%, 83.3%, 51.1%, 64.7%)
CIE-LABlab(18.79, 35.40, 2.04)
CIE-LCHlch(18.79, 35.46, 3.30°)
OKLaboklab(31.41% 0.1085 0.0056)
OKLCHoklch(31.41% 0.109 2.9)
XYZxyz(4.8423, 2.6978, 2.6481)
Luminance0.0270 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F2C #0F5A3D
analogous
#5A0F51 #5A0F2C #5A170F
triadic
#5A0F2C #2C5A0F #0F2C5A
tetradic
#5A0F2C #515A0F #0F5A3D #170F5A
square
#5A0F2C #515A0F #0F5A3D #170F5A
split-complementary
#5A0F2C #0F5A17 #0F515A
monochromatic
#1A040D #260612 #5A0F2C #8E1846 #C3205F

Accessibility & contrast

On white

13.64
#5A0F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#5A0F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F2C
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F2C#FFFFFF#000000##FFFFFF
##5A0F2C1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242D
Deuteranopia (green-blind)
#35332A
Tritanopia (blue-blind)
#63001C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a0f2c;
/* rgb */ color: rgb(90, 15, 44);
/* oklch */ color: oklch(31.4% 0.109 2.9);
Tailwind
colors: {
  custom: {
    50: '#8d5664',
    500: '#5a0f2c',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f2c;
$custom-light: #8d5664;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f2c",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 336.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3141,
    "c": 0.10866,
    "h": 2.9
  },
  "luminance": 0.02697
}

Semantic roles & 50–950 ramp

primary
#5A0F2C
secondary
#31946E
accent
#EEA83A
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A0F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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