#5A1238#5A1238

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

Color values

HEX#5A1238
RGBrgb(90, 18, 56)
HSLhsl(328, 67%, 21%)
HSVhsv(328, 80%, 35%)
CMYKcmyk(0%, 80%, 37.8%, 64.7%)
CIE-LABlab(19.61, 35.68, -5.25)
CIE-LCHlch(19.61, 36.07, 351.63°)
OKLaboklab(32.15% 0.1094 -0.0135)
OKLCHoklch(32.15% 0.11 353)
XYZxyz(5.1469, 2.8924, 4.0279)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1238 #125A34
analogous
#58125A #5A1238 #5A1214
triadic
#5A1238 #385A12 #12385A
tetradic
#5A1238 #5A5812 #125A34 #12145A
square
#5A1238 #5A5812 #125A34 #12145A
split-complementary
#5A1238 #145A12 #125A58
monochromatic
#1A0510 #270818 #5A1238 #8D1C58 #C02677

Accessibility & contrast

On white

13.30
#5A1238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1238
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1238#FFFFFF#000000##FFFFFF
##5A12381.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F2739
Deuteranopia (green-blind)
#343436
Tritanopia (blue-blind)
#610B23
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a1238;
/* rgb */ color: rgb(90, 18, 56);
/* oklch */ color: oklch(32.2% 0.110 353.0);
Tailwind
colors: {
  custom: {
    50: '#8c586e',
    500: '#5a1238',
    950: '#000000',
  },
}
SCSS
$custom: #5a1238;
$custom-light: #8c586e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1238",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 328.333,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32151,
    "c": 0.11021,
    "h": 353
  },
  "luminance": 0.02892
}

Semantic roles & 50–950 ramp

primary
#5A1238
secondary
#359361
accent
#EA8F3E
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0C0407
muted
#7D797A

Preview Lab

Preview with #5A1238

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

Preview Lab → · Contrast checker → · Palette generator →

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