#5A102E#5A102E

#5A102E is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.6% C 0.108 H 1.4°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#5A102E
RGBrgb(90, 16, 46)
HSLhsl(336, 70%, 21%)
HSVhsv(336, 82%, 35%)
CMYKcmyk(0%, 82.2%, 48.9%, 64.7%)
CIE-LABlab(18.98, 35.25, 0.89)
CIE-LCHlch(18.98, 35.26, 1.44°)
OKLaboklab(31.57% 0.1082 0.0027)
OKLCHoklch(31.57% 0.108 1.4)
XYZxyz(4.8953, 2.7422, 2.8557)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A102E #105A3C
analogous
#5A1053 #5A102E #5A1710
triadic
#5A102E #2E5A10 #102E5A
tetradic
#5A102E #535A10 #105A3C #17105A
square
#5A102E #535A10 #105A3C #17105A
split-complementary
#5A102E #105A17 #10535A
monochromatic
#1A050D #260713 #5A102E #8E1949 #C22263

Accessibility & contrast

On white

13.56
#5A102E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A102E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A102E
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A102E#FFFFFF#000000##FFFFFF
##5A102E1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21252F
Deuteranopia (green-blind)
#35332C
Tritanopia (blue-blind)
#62031D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a102e;
/* rgb */ color: rgb(90, 16, 46);
/* oklch */ color: oklch(31.6% 0.108 1.4);
Tailwind
colors: {
  custom: {
    50: '#8d5766',
    500: '#5a102e',
    950: '#000000',
  },
}
SCSS
$custom: #5a102e;
$custom-light: #8d5766;
$custom-dark: #000000;
JSON
{
  "hex": "#5a102e",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 46
  },
  "hsl": {
    "h": 335.676,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31571,
    "c": 0.10821,
    "h": 1.4
  },
  "luminance": 0.02741
}

Semantic roles & 50–950 ramp

primary
#5A102E
secondary
#33936C
accent
#EDA53B
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0305
muted
#7E787A

Preview Lab

Preview with #5A102E

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

Preview Lab → · Contrast checker → · Palette generator →

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