#5A0F3A#5A0F3A

#5A0F3A is a dark, moderate pink. Relative luminance 0.028; OKLCH L 32.0% C 0.115 H 350.8°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#5A0F3A
RGBrgb(90, 15, 58)
HSLhsl(326, 71%, 21%)
HSVhsv(326, 83%, 35%)
CMYKcmyk(0%, 83.3%, 35.6%, 64.7%)
CIE-LABlab(19.31, 37.00, -7.09)
CIE-LCHlch(19.31, 37.68, 349.15°)
OKLaboklab(31.96% 0.1134 -0.0184)
OKLCHoklch(31.96% 0.115 350.8)
XYZxyz(5.1513, 2.8214, 4.2755)
Luminance0.0282 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F3A #0F5A2F
analogous
#540F5A #5A0F3A #5A0F14
triadic
#5A0F3A #3A5A0F #0F3A5A
tetradic
#5A0F3A #5A540F #0F5A2F #0F145A
square
#5A0F3A #5A540F #0F5A2F #0F145A
split-complementary
#5A0F3A #145A0F #0F5A54
monochromatic
#1A0411 #260618 #5A0F3A #8E185C #C3207E

Accessibility & contrast

On white

13.43
#5A0F3A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F3A
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F3A#FFFFFF#000000##FFFFFF
##5A0F3A1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C263B
Deuteranopia (green-blind)
#323438
Tritanopia (blue-blind)
#610923
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a0f3a;
/* rgb */ color: rgb(90, 15, 58);
/* oklch */ color: oklch(32.0% 0.115 350.8);
Tailwind
colors: {
  custom: {
    50: '#8c5770',
    500: '#5a0f3a',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f3a;
$custom-light: #8c5770;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f3a",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 58
  },
  "hsl": {
    "h": 325.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31964,
    "c": 0.11485,
    "h": 350.8
  },
  "luminance": 0.02821
}

Semantic roles & 50–950 ramp

primary
#5A0F3A
secondary
#31945B
accent
#EE873A
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0D0307
muted
#7D787A

Preview Lab

Preview with #5A0F3A

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

Preview Lab → · Contrast checker → · Palette generator →

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