#5A1239#5A1239

#5A1239 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.2% C 0.111 H 352.1°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#5A1239
RGBrgb(90, 18, 57)
HSLhsl(328, 67%, 21%)
HSVhsv(328, 80%, 35%)
CMYKcmyk(0%, 80%, 36.7%, 64.7%)
CIE-LABlab(19.65, 35.81, -5.89)
CIE-LCHlch(19.65, 36.29, 350.66°)
OKLaboklab(32.19% 0.1097 -0.0152)
OKLCHoklch(32.19% 0.111 352.1)
XYZxyz(5.1716, 2.9023, 4.1580)
Luminance0.0290 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1239 #125A33
analogous
#57125A #5A1239 #5A1215
triadic
#5A1239 #395A12 #12395A
tetradic
#5A1239 #5A5712 #125A33 #12155A
square
#5A1239 #5A5712 #125A33 #12155A
split-complementary
#5A1239 #155A12 #125A57
monochromatic
#1A0510 #270819 #5A1239 #8D1C59 #C0267A

Accessibility & contrast

On white

13.29
#5A1239 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5A1239 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1239
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1239#FFFFFF#000000##FFFFFF
##5A12391.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F273A
Deuteranopia (green-blind)
#333437
Tritanopia (blue-blind)
#610C23
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1239;
/* rgb */ color: rgb(90, 18, 57);
/* oklch */ color: oklch(32.2% 0.111 352.1);
Tailwind
colors: {
  custom: {
    50: '#8c586f',
    500: '#5a1239',
    950: '#000000',
  },
}
SCSS
$custom: #5a1239;
$custom-light: #8c586f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1239",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 57
  },
  "hsl": {
    "h": 327.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32194,
    "c": 0.11075,
    "h": 352.1
  },
  "luminance": 0.02902
}

Semantic roles & 50–950 ramp

primary
#5A1239
secondary
#359360
accent
#EA8D3E
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A1239

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

Preview Lab → · Contrast checker → · Palette generator →

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