#5A102F#5A102F

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

Color values

HEX#5A102F
RGBrgb(90, 16, 47)
HSLhsl(335, 70%, 21%)
HSVhsv(335, 82%, 35%)
CMYKcmyk(0%, 82.2%, 47.8%, 64.7%)
CIE-LABlab(19.01, 35.36, 0.23)
CIE-LCHlch(19.01, 35.36, 0.37°)
OKLaboklab(31.61% 0.1086 0.001)
OKLCHoklch(31.61% 0.109 0.5)
XYZxyz(4.9152, 2.7501, 2.9608)
Luminance0.0275 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A102F #105A3B
analogous
#5A1054 #5A102F #5A1610
triadic
#5A102F #2F5A10 #102F5A
tetradic
#5A102F #545A10 #105A3B #16105A
square
#5A102F #545A10 #105A3B #16105A
split-complementary
#5A102F #105A16 #10545A
monochromatic
#1A050E #260714 #5A102F #8E194A #C22265

Accessibility & contrast

On white

13.55
#5A102F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A102F
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A102F#FFFFFF#000000##FFFFFF
##5A102F1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212530
Deuteranopia (green-blind)
#35332D
Tritanopia (blue-blind)
#62031E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a102f;
/* rgb */ color: rgb(90, 16, 47);
/* oklch */ color: oklch(31.6% 0.109 0.5);
Tailwind
colors: {
  custom: {
    50: '#8d5767',
    500: '#5a102f',
    950: '#000000',
  },
}
SCSS
$custom: #5a102f;
$custom-light: #8d5767;
$custom-dark: #000000;
JSON
{
  "hex": "#5a102f",
  "rgb": {
    "r": 90,
    "g": 16,
    "b": 47
  },
  "hsl": {
    "h": 334.865,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31607,
    "c": 0.10857,
    "h": 0.5
  },
  "luminance": 0.02749
}

Semantic roles & 50–950 ramp

primary
#5A102F
secondary
#33936B
accent
#EDA23B
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5A102F

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

Preview Lab → · Contrast checker → · Palette generator →

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