#5A1235#5A1235

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

Color values

HEX#5A1235
RGBrgb(90, 18, 53)
HSLhsl(331, 67%, 21%)
HSVhsv(331, 80%, 35%)
CMYKcmyk(0%, 80%, 41.1%, 64.7%)
CIE-LABlab(19.49, 35.31, -3.31)
CIE-LCHlch(19.49, 35.47, 354.64°)
OKLaboklab(32.03% 0.1084 -0.0083)
OKLCHoklch(32.03% 0.109 355.6)
XYZxyz(5.0757, 2.8639, 3.6530)
Luminance0.0286 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1235 #125A37
analogous
#5A1259 #5A1235 #5A1312
triadic
#5A1235 #355A12 #12355A
tetradic
#5A1235 #595A12 #125A37 #13125A
square
#5A1235 #595A12 #125A37 #13125A
split-complementary
#5A1235 #125A13 #12595A
monochromatic
#1A050F #270817 #5A1235 #8D1C53 #C02671

Accessibility & contrast

On white

13.35
#5A1235 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1235
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1235#FFFFFF#000000##FFFFFF
##5A12351.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a1235;
/* rgb */ color: rgb(90, 18, 53);
/* oklch */ color: oklch(32.0% 0.109 355.6);
Tailwind
colors: {
  custom: {
    50: '#8c586c',
    500: '#5a1235',
    950: '#000000',
  },
}
SCSS
$custom: #5a1235;
$custom-light: #8c586c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1235",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 53
  },
  "hsl": {
    "h": 330.833,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32027,
    "c": 0.10873,
    "h": 355.6
  },
  "luminance": 0.02863
}

Semantic roles & 50–950 ramp

primary
#5A1235
secondary
#359365
accent
#EA963E
background
#F8F5F6
surface
#F0E9EB
border
#CBC5C6
text
#0D0406
muted
#7D797A

Preview Lab

Preview with #5A1235

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

Preview Lab → · Contrast checker → · Palette generator →

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