#5A0F27#5A0F27

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

Color values

HEX#5A0F27
RGBrgb(90, 15, 39)
HSLhsl(341, 71%, 21%)
HSVhsv(341, 83%, 35%)
CMYKcmyk(0%, 83.3%, 56.7%, 64.7%)
CIE-LABlab(18.64, 34.92, 5.39)
CIE-LCHlch(18.64, 35.33, 8.78°)
OKLaboklab(31.25% 0.1064 0.0139)
OKLCHoklch(31.25% 0.107 7.4)
XYZxyz(4.7539, 2.6625, 2.1826)
Luminance0.0266 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F27 #0F5A42
analogous
#5A0F4C #5A0F27 #5A1C0F
triadic
#5A0F27 #275A0F #0F275A
tetradic
#5A0F27 #4C5A0F #0F5A42 #1C0F5A
square
#5A0F27 #4C5A0F #0F5A42 #1C0F5A
split-complementary
#5A0F27 #0F5A1C #0F4C5A
monochromatic
#1A040B #260610 #5A0F27 #8E183E #C32054

Accessibility & contrast

On white

13.70
#5A0F27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F27
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F27#FFFFFF#000000##FFFFFF
##5A0F271.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a0f27;
/* rgb */ color: rgb(90, 15, 39);
/* oklch */ color: oklch(31.2% 0.107 7.4);
Tailwind
colors: {
  custom: {
    50: '#8d5660',
    500: '#5a0f27',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f27;
$custom-light: #8d5660;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f27",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 39
  },
  "hsl": {
    "h": 340.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31248,
    "c": 0.10734,
    "h": 7.4
  },
  "luminance": 0.02662
}

Semantic roles & 50–950 ramp

primary
#5A0F27
secondary
#319474
accent
#EEB43A
background
#F9F5F5
surface
#F1E9E9
border
#CBC5C5
text
#0D0305
muted
#7E7879

Preview Lab

Preview with #5A0F27

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

Preview Lab → · Contrast checker → · Palette generator →

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