#5A123F#5A123F

#5A123F is a dark, moderate pink. Relative luminance 0.030; OKLCH L 32.5% C 0.114 H 347.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#5A123F
RGBrgb(90, 18, 63)
HSLhsl(323, 67%, 21%)
HSVhsv(323, 80%, 35%)
CMYKcmyk(0%, 80%, 30%, 64.7%)
CIE-LABlab(19.91, 36.62, -9.68)
CIE-LCHlch(19.91, 37.87, 345.19°)
OKLaboklab(32.47% 0.1114 -0.0256)
OKLCHoklch(32.47% 0.114 347.1)
XYZxyz(5.3302, 2.9657, 4.9934)
Luminance0.0296 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A123F #125A2D
analogous
#51125A #5A123F #5A121B
triadic
#5A123F #3F5A12 #123F5A
tetradic
#5A123F #5A5112 #125A2D #121B5A
square
#5A123F #5A5112 #125A2D #121B5A
split-complementary
#5A123F #1B5A12 #125A51
monochromatic
#1A0512 #27081B #5A123F #8D1C63 #C02686

Accessibility & contrast

On white

13.18
#5A123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A123F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A123F#FFFFFF#000000##FFFFFF
##5A123F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2840
Deuteranopia (green-blind)
#32353D
Tritanopia (blue-blind)
#610F26
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a123f;
/* rgb */ color: rgb(90, 18, 63);
/* oklch */ color: oklch(32.5% 0.114 347.1);
Tailwind
colors: {
  custom: {
    50: '#8c5874',
    500: '#5a123f',
    950: '#000000',
  },
}
SCSS
$custom: #5a123f;
$custom-light: #8c5874;
$custom-dark: #000000;
JSON
{
  "hex": "#5a123f",
  "rgb": {
    "r": 90,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 322.5,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32467,
    "c": 0.11427,
    "h": 347.1
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#5A123F
secondary
#359358
accent
#EA7E3E
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0408
muted
#7D797B

Preview Lab

Preview with #5A123F

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

Preview Lab → · Contrast checker → · Palette generator →

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