#5A0F2B#5A0F2B

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

Color values

HEX#5A0F2B
RGBrgb(90, 15, 43)
HSLhsl(338, 71%, 21%)
HSVhsv(338, 83%, 35%)
CMYKcmyk(0%, 83.3%, 52.2%, 64.7%)
CIE-LABlab(18.76, 35.30, 2.71)
CIE-LCHlch(18.76, 35.40, 4.38°)
OKLaboklab(31.38% 0.1081 0.0073)
OKLCHoklch(31.38% 0.108 3.8)
XYZxyz(4.8237, 2.6904, 2.5503)
Luminance0.0269 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F2B #0F5A3E
analogous
#5A0F50 #5A0F2B #5A180F
triadic
#5A0F2B #2B5A0F #0F2B5A
tetradic
#5A0F2B #505A0F #0F5A3E #180F5A
square
#5A0F2B #505A0F #0F5A3E #180F5A
split-complementary
#5A0F2B #0F5A18 #0F505A
monochromatic
#1A040D #260612 #5A0F2B #8E1844 #C3205D

Accessibility & contrast

On white

13.65
#5A0F2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F2B
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F2B#FFFFFF#000000##FFFFFF
##5A0F2B1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a0f2b;
/* rgb */ color: rgb(90, 15, 43);
/* oklch */ color: oklch(31.4% 0.108 3.8);
Tailwind
colors: {
  custom: {
    50: '#8d5664',
    500: '#5a0f2b',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f2b;
$custom-light: #8d5664;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f2b",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 43
  },
  "hsl": {
    "h": 337.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31376,
    "c": 0.10835,
    "h": 3.8
  },
  "luminance": 0.0269
}

Semantic roles & 50–950 ramp

primary
#5A0F2B
secondary
#31946F
accent
#EEAB3A
background
#F9F5F5
surface
#F1E9EA
border
#CBC5C6
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A0F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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