#5A1236#5A1236

#5A1236 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.1% C 0.109 H 354.7°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#5A1236
RGBrgb(90, 18, 54)
HSLhsl(330, 67%, 21%)
HSVhsv(330, 80%, 35%)
CMYKcmyk(0%, 80%, 40%, 64.7%)
CIE-LABlab(19.53, 35.43, -3.96)
CIE-LCHlch(19.53, 35.65, 353.62°)
OKLaboklab(32.07% 0.1087 -0.01)
OKLCHoklch(32.07% 0.109 354.7)
XYZxyz(5.0989, 2.8732, 3.7754)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1236 #125A36
analogous
#5A125A #5A1236 #5A1212
triadic
#5A1236 #365A12 #12365A
tetradic
#5A1236 #5A5A12 #125A36 #12125A
square
#5A1236 #5A5A12 #125A36 #12125A
split-complementary
#5A1236 #125A12 #125A5A
monochromatic
#1A050F #270817 #5A1236 #8D1C55 #C02673

Accessibility & contrast

On white

13.34
#5A1236 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A1236 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1236
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1236#FFFFFF#000000##FFFFFF
##5A12361.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202737
Deuteranopia (green-blind)
#343434
Tritanopia (blue-blind)
#620A22
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1236;
/* rgb */ color: rgb(90, 18, 54);
/* oklch */ color: oklch(32.1% 0.109 354.7);
Tailwind
colors: {
  custom: {
    50: '#8c586c',
    500: '#5a1236',
    950: '#000000',
  },
}
SCSS
$custom: #5a1236;
$custom-light: #8c586c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1236",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 54
  },
  "hsl": {
    "h": 330,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32068,
    "c": 0.1092,
    "h": 354.7
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#5A1236
secondary
#359364
accent
#EA943E
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0407
muted
#7D797A

Preview Lab

Preview with #5A1236

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

Preview Lab → · Contrast checker → · Palette generator →

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