#5A0C26#5A0C26

#5A0C26 is a dark, moderate pink. Relative luminance 0.026; OKLCH L 31.0% C 0.110 H 7.5°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#5A0C26
RGBrgb(90, 12, 38)
HSLhsl(340, 76%, 20%)
HSVhsv(340, 87%, 35%)
CMYKcmyk(0%, 86.7%, 57.8%, 64.7%)
CIE-LABlab(18.26, 35.81, 5.58)
CIE-LCHlch(18.26, 36.24, 8.86°)
OKLaboklab(30.96% 0.1092 0.0143)
OKLCHoklch(30.96% 0.11 7.5)
XYZxyz(4.6982, 2.5772, 2.0834)
Luminance0.0258 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0C26 #0C5A40
analogous
#5A0C4D #5A0C26 #5A190C
triadic
#5A0C26 #265A0C #0C265A
tetradic
#5A0C26 #4D5A0C #0C5A40 #190C5A
square
#5A0C26 #4D5A0C #0C5A40 #190C5A
split-complementary
#5A0C26 #0C5A19 #0C4D5A
monochromatic
#1B040B #24050F #5A0C26 #90133D #C61A54

Accessibility & contrast

On white

13.86
#5A0C26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#5A0C26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0C26
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0C26#FFFFFF#000000##FFFFFF
##5A0C261.0013.861.5213.86
#FFFFFF13.861.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#212326
Deuteranopia (green-blind)
#363224
Tritanopia (blue-blind)
#630018
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0c26;
/* rgb */ color: rgb(90, 12, 38);
/* oklch */ color: oklch(31.0% 0.110 7.5);
Tailwind
colors: {
  custom: {
    50: '#8e5560',
    500: '#5a0c26',
    950: '#000000',
  },
}
SCSS
$custom: #5a0c26;
$custom-light: #8e5560;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0c26",
  "rgb": {
    "r": 90,
    "g": 12,
    "b": 38
  },
  "hsl": {
    "h": 340,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.30963,
    "c": 0.11011,
    "h": 7.5
  },
  "luminance": 0.02577
}

Semantic roles & 50–950 ramp

primary
#5A0C26
secondary
#2D9572
accent
#F3B435
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5A0C26

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

Preview Lab → · Contrast checker → · Palette generator →

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