#5A1232#5A1232

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

Color values

HEX#5A1232
RGBrgb(90, 18, 50)
HSLhsl(333, 67%, 21%)
HSVhsv(333, 80%, 35%)
CMYKcmyk(0%, 80%, 44.4%, 64.7%)
CIE-LABlab(19.38, 34.96, -1.36)
CIE-LCHlch(19.38, 34.98, 357.77°)
OKLaboklab(31.91% 0.1073 -0.0031)
OKLCHoklch(31.91% 0.107 358.3)
XYZxyz(5.0088, 2.8372, 3.3009)
Luminance0.0284 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1232 #125A3A
analogous
#5A1256 #5A1232 #5A1612
triadic
#5A1232 #325A12 #12325A
tetradic
#5A1232 #565A12 #125A3A #16125A
square
#5A1232 #565A12 #125A3A #16125A
split-complementary
#5A1232 #125A16 #12565A
monochromatic
#1A050E #270816 #5A1232 #8D1C4E #C0266B

Accessibility & contrast

On white

13.40
#5A1232 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1232
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1232#FFFFFF#000000##FFFFFF
##5A12321.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212633
Deuteranopia (green-blind)
#353430
Tritanopia (blue-blind)
#620820
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1232;
/* rgb */ color: rgb(90, 18, 50);
/* oklch */ color: oklch(31.9% 0.107 358.3);
Tailwind
colors: {
  custom: {
    50: '#8d5769',
    500: '#5a1232',
    950: '#000000',
  },
}
SCSS
$custom: #5a1232;
$custom-light: #8d5769;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1232",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 50
  },
  "hsl": {
    "h": 333.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.3191,
    "c": 0.10739,
    "h": 358.3
  },
  "luminance": 0.02837
}

Semantic roles & 50–950 ramp

primary
#5A1232
secondary
#359369
accent
#EA9D3E
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0306
muted
#7D787A

Preview Lab

Preview with #5A1232

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

Preview Lab → · Contrast checker → · Palette generator →

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