#5A124B#5A124B

#5A124B is a dark, vivid pink. Relative luminance 0.031; OKLCH L 33.1% C 0.123 H 337.9°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#5A124B
RGBrgb(90, 18, 75)
HSLhsl(313, 67%, 21%)
HSVhsv(313, 80%, 35%)
CMYKcmyk(0%, 80%, 16.7%, 64.7%)
CIE-LABlab(20.50, 38.43, -17.02)
CIE-LCHlch(20.50, 42.03, 336.10°)
OKLaboklab(33.09% 0.1136 -0.0462)
OKLCHoklch(33.09% 0.123 337.9)
XYZxyz(5.7029, 3.1148, 6.9561)
Luminance0.0311 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A124B #125A21
analogous
#45125A #5A124B #5A1227
triadic
#5A124B #4B5A12 #124B5A
tetradic
#5A124B #5A4512 #125A21 #12275A
square
#5A124B #5A4512 #125A21 #12275A
split-complementary
#5A124B #275A12 #125A45
monochromatic
#1A0515 #270820 #5A124B #8D1C75 #C026A0

Accessibility & contrast

On white

12.94
#5A124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A124B
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A124B#FFFFFF#000000##FFFFFF
##5A124B1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152A4D
Deuteranopia (green-blind)
#2D3549
Tritanopia (blue-blind)
#5F162D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a124b;
/* rgb */ color: rgb(90, 18, 75);
/* oklch */ color: oklch(33.1% 0.123 337.9);
Tailwind
colors: {
  custom: {
    50: '#8c587d',
    500: '#5a124b',
    950: '#000000',
  },
}
SCSS
$custom: #5a124b;
$custom-light: #8c587d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a124b",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 312.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33089,
    "c": 0.12268,
    "h": 337.9
  },
  "luminance": 0.03114
}

Semantic roles & 50–950 ramp

primary
#5A124B
secondary
#359349
accent
#EA623E
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A124B

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

Preview Lab → · Contrast checker → · Palette generator →

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