#5A0F26#5A0F26

#5A0F26 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.2% C 0.107 H 8.3°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#5A0F26
RGBrgb(90, 15, 38)
HSLhsl(342, 71%, 21%)
HSVhsv(342, 83%, 35%)
CMYKcmyk(0%, 83.3%, 57.8%, 64.7%)
CIE-LABlab(18.61, 34.83, 6.07)
CIE-LCHlch(18.61, 35.36, 9.88°)
OKLaboklab(31.22% 0.106 0.0155)
OKLCHoklch(31.22% 0.107 8.3)
XYZxyz(4.7376, 2.6559, 2.0965)
Luminance0.0266 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F26 #0F5A43
analogous
#5A0F4B #5A0F26 #5A1D0F
triadic
#5A0F26 #265A0F #0F265A
tetradic
#5A0F26 #4B5A0F #0F5A43 #1D0F5A
square
#5A0F26 #4B5A0F #0F5A43 #1D0F5A
split-complementary
#5A0F26 #0F5A1D #0F4B5A
monochromatic
#1A040B #260610 #5A0F26 #8E183C #C32052

Accessibility & contrast

On white

13.72
#5A0F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#5A0F26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F26
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F26#FFFFFF#000000##FFFFFF
##5A0F261.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#232426
Deuteranopia (green-blind)
#363324
Tritanopia (blue-blind)
#630019
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #5a0f26;
/* rgb */ color: rgb(90, 15, 38);
/* oklch */ color: oklch(31.2% 0.107 8.3);
Tailwind
colors: {
  custom: {
    50: '#8e5660',
    500: '#5a0f26',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f26;
$custom-light: #8e5660;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f26",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 38
  },
  "hsl": {
    "h": 341.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31218,
    "c": 0.10714,
    "h": 8.3
  },
  "luminance": 0.02655
}

Semantic roles & 50–950 ramp

primary
#5A0F26
secondary
#319475
accent
#EEB73A
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0304
muted
#7E7879

Preview Lab

Preview with #5A0F26

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

Preview Lab → · Contrast checker → · Palette generator →

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