#5A0F31#5A0F31

#5A0F31 is a dark, moderate pink. Relative luminance 0.027; OKLCH L 31.6% C 0.110 H 358.5°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#5A0F31
RGBrgb(90, 15, 49)
HSLhsl(333, 71%, 21%)
HSVhsv(333, 83%, 35%)
CMYKcmyk(0%, 83.3%, 45.6%, 64.7%)
CIE-LABlab(18.96, 35.92, -1.27)
CIE-LCHlch(18.96, 35.95, 357.98°)
OKLaboklab(31.59% 0.1104 -0.0029)
OKLCHoklch(31.59% 0.11 358.5)
XYZxyz(4.9420, 2.7377, 3.1733)
Luminance0.0274 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F31 #0F5A38
analogous
#5A0F56 #5A0F31 #5A120F
triadic
#5A0F31 #315A0F #0F315A
tetradic
#5A0F31 #565A0F #0F5A38 #120F5A
square
#5A0F31 #565A0F #0F5A38 #120F5A
split-complementary
#5A0F31 #0F5A12 #0F565A
monochromatic
#1A040E #260614 #5A0F31 #8E184E #C3206A

Accessibility & contrast

On white

13.57
#5A0F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#5A0F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F31
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F31#FFFFFF#000000##FFFFFF
##5A0F311.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#202532
Deuteranopia (green-blind)
#34332F
Tritanopia (blue-blind)
#62031E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #5a0f31;
/* rgb */ color: rgb(90, 15, 49);
/* oklch */ color: oklch(31.6% 0.110 358.5);
Tailwind
colors: {
  custom: {
    50: '#8d5668',
    500: '#5a0f31',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f31;
$custom-light: #8d5668;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f31",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 332.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.31591,
    "c": 0.11047,
    "h": 358.5
  },
  "luminance": 0.02737
}

Semantic roles & 50–950 ramp

primary
#5A0F31
secondary
#319467
accent
#EE9C3A
background
#F9F5F6
surface
#F1E9EB
border
#CBC5C6
text
#0D0306
muted
#7E787A

Preview Lab

Preview with #5A0F31

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

Preview Lab → · Contrast checker → · Palette generator →

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