#5A1231#5A1231

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

Color values

HEX#5A1231
RGBrgb(90, 18, 49)
HSLhsl(334, 67%, 21%)
HSVhsv(334, 80%, 35%)
CMYKcmyk(0%, 80%, 45.6%, 64.7%)
CIE-LABlab(19.34, 34.84, -0.71)
CIE-LCHlch(19.34, 34.85, 358.84°)
OKLaboklab(31.87% 0.107 -0.0014)
OKLCHoklch(31.87% 0.107 359.2)
XYZxyz(4.9875, 2.8287, 3.1885)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1231 #125A3B
analogous
#5A1255 #5A1231 #5A1712
triadic
#5A1231 #315A12 #12315A
tetradic
#5A1231 #555A12 #125A3B #17125A
square
#5A1231 #555A12 #125A3B #17125A
split-complementary
#5A1231 #125A17 #12555A
monochromatic
#1A050E #270815 #5A1231 #8D1C4D #C02669

Accessibility & contrast

On white

13.41
#5A1231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1231
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1231#FFFFFF#000000##FFFFFF
##5A12311.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#222632
Deuteranopia (green-blind)
#35342F
Tritanopia (blue-blind)
#62071F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1231;
/* rgb */ color: rgb(90, 18, 49);
/* oklch */ color: oklch(31.9% 0.107 359.2);
Tailwind
colors: {
  custom: {
    50: '#8d5768',
    500: '#5a1231',
    950: '#000000',
  },
}
SCSS
$custom: #5a1231;
$custom-light: #8d5768;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1231",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 49
  },
  "hsl": {
    "h": 334.167,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31872,
    "c": 0.10698,
    "h": 359.2
  },
  "luminance": 0.02828
}

Semantic roles & 50–950 ramp

primary
#5A1231
secondary
#35936A
accent
#EAA03E
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5A1231

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

Preview Lab → · Contrast checker → · Palette generator →

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