#5A0F2A#5A0F2A

#5A0F2A is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.3% C 0.108 H 4.7°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#5A0F2A
RGBrgb(90, 15, 42)
HSLhsl(338, 71%, 21%)
HSVhsv(338, 83%, 35%)
CMYKcmyk(0%, 83.3%, 53.3%, 64.7%)
CIE-LABlab(18.73, 35.20, 3.37)
CIE-LCHlch(18.73, 35.36, 5.47°)
OKLaboklab(31.34% 0.1077 0.0089)
OKLCHoklch(31.34% 0.108 4.7)
XYZxyz(4.8056, 2.6831, 2.4549)
Luminance0.0268 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F2A #0F5A3F
analogous
#5A0F4F #5A0F2A #5A190F
triadic
#5A0F2A #2A5A0F #0F2A5A
tetradic
#5A0F2A #4F5A0F #0F5A3F #190F5A
square
#5A0F2A #4F5A0F #0F5A3F #190F5A
split-complementary
#5A0F2A #0F5A19 #0F4F5A
monochromatic
#1A040C #260612 #5A0F2A #8E1842 #C3205B

Accessibility & contrast

On white

13.67
#5A0F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F2A
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F2A#FFFFFF#000000##FFFFFF
##5A0F2A1.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22242B
Deuteranopia (green-blind)
#363328
Tritanopia (blue-blind)
#63001B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a0f2a;
/* rgb */ color: rgb(90, 15, 42);
/* oklch */ color: oklch(31.3% 0.108 4.7);
Tailwind
colors: {
  custom: {
    50: '#8d5663',
    500: '#5a0f2a',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f2a;
$custom-light: #8d5663;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f2a",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 338.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31343,
    "c": 0.10807,
    "h": 4.7
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#5A0F2A
secondary
#319470
accent
#EEAD3A
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A0F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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