#5A1145#5A1145

#5A1145 is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.7% C 0.119 H 342.2°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#5A1145
RGBrgb(90, 17, 69)
HSLhsl(317, 68%, 21%)
HSVhsv(317, 81%, 35%)
CMYKcmyk(0%, 81.1%, 23.3%, 64.7%)
CIE-LABlab(20.06, 37.85, -13.59)
CIE-LCHlch(20.06, 40.21, 340.25°)
OKLaboklab(32.67% 0.1138 -0.0365)
OKLCHoklch(32.67% 0.119 342.2)
XYZxyz(5.4913, 3.0048, 5.9199)
Luminance0.0300 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1145 #115A26
analogous
#4A115A #5A1145 #5A1120
triadic
#5A1145 #455A11 #11455A
tetradic
#5A1145 #5A4A11 #115A26 #11205A
square
#5A1145 #5A4A11 #115A26 #11205A
split-complementary
#5A1145 #205A11 #115A4A
monochromatic
#1A0514 #27071E #5A1145 #8D1B6C #C12494

Accessibility & contrast

On white

13.12
#5A1145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A1145 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1145
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1145#FFFFFF#000000##FFFFFF
##5A11451.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182946
Deuteranopia (green-blind)
#2F3543
Tritanopia (blue-blind)
#601229
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a1145;
/* rgb */ color: rgb(90, 17, 69);
/* oklch */ color: oklch(32.7% 0.119 342.2);
Tailwind
colors: {
  custom: {
    50: '#8c5878',
    500: '#5a1145',
    950: '#000000',
  },
}
SCSS
$custom: #5a1145;
$custom-light: #8c5878;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1145",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 69
  },
  "hsl": {
    "h": 317.26,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32674,
    "c": 0.11949,
    "h": 342.2
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#5A1145
secondary
#34934F
accent
#EB6F3D
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1145

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

Preview Lab → · Contrast checker → · Palette generator →

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