#5A0F28#5A0F28

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

Color values

HEX#5A0F28
RGBrgb(90, 15, 40)
HSLhsl(340, 71%, 21%)
HSVhsv(340, 83%, 35%)
CMYKcmyk(0%, 83.3%, 55.6%, 64.7%)
CIE-LABlab(18.67, 35.01, 4.72)
CIE-LCHlch(18.67, 35.33, 7.67°)
OKLaboklab(31.28% 0.1069 0.0122)
OKLCHoklch(31.28% 0.108 6.5)
XYZxyz(4.7707, 2.6692, 2.2711)
Luminance0.0267 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F28 #0F5A41
analogous
#5A0F4D #5A0F28 #5A1B0F
triadic
#5A0F28 #285A0F #0F285A
tetradic
#5A0F28 #4D5A0F #0F5A41 #1B0F5A
square
#5A0F28 #4D5A0F #0F5A41 #1B0F5A
split-complementary
#5A0F28 #0F5A1B #0F4D5A
monochromatic
#1A040C #260611 #5A0F28 #8E183F #C32057

Accessibility & contrast

On white

13.69
#5A0F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5A0F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F28
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F28#FFFFFF#000000##FFFFFF
##5A0F281.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222429
Deuteranopia (green-blind)
#363326
Tritanopia (blue-blind)
#63001A
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0f28;
/* rgb */ color: rgb(90, 15, 40);
/* oklch */ color: oklch(31.3% 0.108 6.5);
Tailwind
colors: {
  custom: {
    50: '#8d5661',
    500: '#5a0f28',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f28;
$custom-light: #8d5661;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f28",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 340,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31279,
    "c": 0.10757,
    "h": 6.5
  },
  "luminance": 0.02669
}

Semantic roles & 50–950 ramp

primary
#5A0F28
secondary
#319473
accent
#EEB23A
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A0F28

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

Preview Lab → · Contrast checker → · Palette generator →

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