#5A0F2D#5A0F2D

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

Color values

HEX#5A0F2D
RGBrgb(90, 15, 45)
HSLhsl(336, 71%, 21%)
HSVhsv(336, 83%, 35%)
CMYKcmyk(0%, 83.3%, 50%, 64.7%)
CIE-LABlab(18.82, 35.50, 1.37)
CIE-LCHlch(18.82, 35.53, 2.21°)
OKLaboklab(31.45% 0.1089 0.0039)
OKLCHoklch(31.45% 0.109 2.1)
XYZxyz(4.8613, 2.7054, 2.7483)
Luminance0.0271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F2D #0F5A3C
analogous
#5A0F52 #5A0F2D #5A160F
triadic
#5A0F2D #2D5A0F #0F2D5A
tetradic
#5A0F2D #525A0F #0F5A3C #160F5A
square
#5A0F2D #525A0F #0F5A3C #160F5A
split-complementary
#5A0F2D #0F5A16 #0F525A
monochromatic
#1A040D #260613 #5A0F2D #8E1847 #C32061

Accessibility & contrast

On white

13.63
#5A0F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F2D
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F2D#FFFFFF#000000##FFFFFF
##5A0F2D1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242E
Deuteranopia (green-blind)
#35332B
Tritanopia (blue-blind)
#62011C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a0f2d;
/* rgb */ color: rgb(90, 15, 45);
/* oklch */ color: oklch(31.4% 0.109 2.1);
Tailwind
colors: {
  custom: {
    50: '#8d5665',
    500: '#5a0f2d',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f2d;
$custom-light: #8d5665;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f2d",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 336,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31445,
    "c": 0.10898,
    "h": 2.1
  },
  "luminance": 0.02705
}

Semantic roles & 50–950 ramp

primary
#5A0F2D
secondary
#31946C
accent
#EEA63A
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A0F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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