#5A0F2F#5A0F2F

#5A0F2F is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.5% C 0.110 H 0.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#5A0F2F
RGBrgb(90, 15, 47)
HSLhsl(334, 71%, 21%)
HSVhsv(334, 83%, 35%)
CMYKcmyk(0%, 83.3%, 47.8%, 64.7%)
CIE-LABlab(18.89, 35.71, 0.05)
CIE-LCHlch(18.89, 35.71, 0.08°)
OKLaboklab(31.52% 0.1097 0.0005)
OKLCHoklch(31.52% 0.11 0.3)
XYZxyz(4.9008, 2.7212, 2.9559)
Luminance0.0272 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F2F #0F5A3A
analogous
#5A0F54 #5A0F2F #5A140F
triadic
#5A0F2F #2F5A0F #0F2F5A
tetradic
#5A0F2F #545A0F #0F5A3A #140F5A
square
#5A0F2F #545A0F #0F5A3A #140F5A
split-complementary
#5A0F2F #0F5A14 #0F545A
monochromatic
#1A040E #260614 #5A0F2F #8E184A #C32066

Accessibility & contrast

On white

13.60
#5A0F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F2F
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F2F#FFFFFF#000000##FFFFFF
##5A0F2F1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202530
Deuteranopia (green-blind)
#35332D
Tritanopia (blue-blind)
#62021D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a0f2f;
/* rgb */ color: rgb(90, 15, 47);
/* oklch */ color: oklch(31.5% 0.110 0.3);
Tailwind
colors: {
  custom: {
    50: '#8d5667',
    500: '#5a0f2f',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f2f;
$custom-light: #8d5667;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f2f",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 47
  },
  "hsl": {
    "h": 334.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31516,
    "c": 0.10969,
    "h": 0.3
  },
  "luminance": 0.02721
}

Semantic roles & 50–950 ramp

primary
#5A0F2F
secondary
#31946A
accent
#EEA13A
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5A0F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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