#5A1234#5A1234

#5A1234 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.0% C 0.108 H 356.5°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#5A1234
RGBrgb(90, 18, 52)
HSLhsl(332, 67%, 21%)
HSVhsv(332, 80%, 35%)
CMYKcmyk(0%, 80%, 42.2%, 64.7%)
CIE-LABlab(19.45, 35.19, -2.67)
CIE-LCHlch(19.45, 35.29, 355.67°)
OKLaboklab(31.99% 0.1081 -0.0066)
OKLCHoklch(31.99% 0.108 356.5)
XYZxyz(5.0529, 2.8548, 3.5331)
Luminance0.0285 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1234 #125A38
analogous
#5A1258 #5A1234 #5A1412
triadic
#5A1234 #345A12 #12345A
tetradic
#5A1234 #585A12 #125A38 #14125A
square
#5A1234 #585A12 #125A38 #14125A
split-complementary
#5A1234 #125A14 #12585A
monochromatic
#1A050F #270817 #5A1234 #8D1C51 #C0266F

Accessibility & contrast

On white

13.37
#5A1234 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1234
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1234#FFFFFF#000000##FFFFFF
##5A12341.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212735
Deuteranopia (green-blind)
#343432
Tritanopia (blue-blind)
#620921
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1234;
/* rgb */ color: rgb(90, 18, 52);
/* oklch */ color: oklch(32.0% 0.108 356.5);
Tailwind
colors: {
  custom: {
    50: '#8c586b',
    500: '#5a1234',
    950: '#000000',
  },
}
SCSS
$custom: #5a1234;
$custom-light: #8c586b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1234",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 52
  },
  "hsl": {
    "h": 331.667,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31987,
    "c": 0.10826,
    "h": 356.5
  },
  "luminance": 0.02854
}

Semantic roles & 50–950 ramp

primary
#5A1234
secondary
#359366
accent
#EA993E
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0406
muted
#7D797A

Preview Lab

Preview with #5A1234

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

Preview Lab → · Contrast checker → · Palette generator →

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