#5A0F39#5A0F39

#5A0F39 is a dark, moderate pink. Relative luminance 0.028; OKLCH L 31.9% C 0.114 H 351.6°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#5A0F39
RGBrgb(90, 15, 57)
HSLhsl(326, 71%, 21%)
HSVhsv(326, 83%, 35%)
CMYKcmyk(0%, 83.3%, 36.7%, 64.7%)
CIE-LABlab(19.27, 36.88, -6.45)
CIE-LCHlch(19.27, 37.44, 350.07°)
OKLaboklab(31.92% 0.1131 -0.0167)
OKLCHoklch(31.92% 0.114 351.6)
XYZxyz(5.1261, 2.8113, 4.1428)
Luminance0.0281 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F39 #0F5A30
analogous
#550F5A #5A0F39 #5A0F13
triadic
#5A0F39 #395A0F #0F395A
tetradic
#5A0F39 #5A550F #0F5A30 #0F135A
square
#5A0F39 #5A550F #0F5A30 #0F135A
split-complementary
#5A0F39 #135A0F #0F5A55
monochromatic
#1A0411 #260618 #5A0F39 #8E185A #C3207B

Accessibility & contrast

On white

13.44
#5A0F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#5A0F39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F39
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F39#FFFFFF#000000##FFFFFF
##5A0F391.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D263A
Deuteranopia (green-blind)
#323437
Tritanopia (blue-blind)
#610822
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a0f39;
/* rgb */ color: rgb(90, 15, 57);
/* oklch */ color: oklch(31.9% 0.114 351.6);
Tailwind
colors: {
  custom: {
    50: '#8c576f',
    500: '#5a0f39',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f39;
$custom-light: #8c576f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f39",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 57
  },
  "hsl": {
    "h": 326.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3192,
    "c": 0.1143,
    "h": 351.6
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#5A0F39
secondary
#31945C
accent
#EE893A
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0D0307
muted
#7D787A

Preview Lab

Preview with #5A0F39

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

Preview Lab → · Contrast checker → · Palette generator →

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