#5A1147#5A1147

#5A1147 is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.8% C 0.121 H 340.7°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#5A1147
RGBrgb(90, 17, 71)
HSLhsl(316, 68%, 21%)
HSVhsv(316, 81%, 35%)
CMYKcmyk(0%, 81.1%, 21.1%, 64.7%)
CIE-LABlab(20.16, 38.15, -14.81)
CIE-LCHlch(20.16, 40.92, 338.79°)
OKLaboklab(32.78% 0.1141 -0.0399)
OKLCHoklch(32.78% 0.121 340.7)
XYZxyz(5.5544, 3.0301, 6.2524)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1147 #115A24
analogous
#48115A #5A1147 #5A1122
triadic
#5A1147 #475A11 #11475A
tetradic
#5A1147 #5A4811 #115A24 #11225A
square
#5A1147 #5A4811 #115A24 #11225A
split-complementary
#5A1147 #225A11 #115A48
monochromatic
#1A0514 #27071E #5A1147 #8D1B70 #C12498

Accessibility & contrast

On white

13.08
#5A1147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5A1147 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1147
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1147#FFFFFF#000000##FFFFFF
##5A11471.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#172948
Deuteranopia (green-blind)
#2F3545
Tritanopia (blue-blind)
#60132A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a1147;
/* rgb */ color: rgb(90, 17, 71);
/* oklch */ color: oklch(32.8% 0.121 340.7);
Tailwind
colors: {
  custom: {
    50: '#8c587a',
    500: '#5a1147',
    950: '#000000',
  },
}
SCSS
$custom: #5a1147;
$custom-light: #8c587a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1147",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 71
  },
  "hsl": {
    "h": 315.616,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3278,
    "c": 0.12091,
    "h": 340.7
  },
  "luminance": 0.03029
}

Semantic roles & 50–950 ramp

primary
#5A1147
secondary
#34934D
accent
#EB6A3D
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A1147

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

Preview Lab → · Contrast checker → · Palette generator →

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