#5A0F3B#5A0F3B

#5A0F3B is a dark, moderate pink. Relative luminance 0.028; OKLCH L 32.0% C 0.115 H 349.9°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#5A0F3B
RGBrgb(90, 15, 59)
HSLhsl(325, 71%, 21%)
HSVhsv(325, 83%, 35%)
CMYKcmyk(0%, 83.3%, 34.4%, 64.7%)
CIE-LABlab(19.36, 37.13, -7.73)
CIE-LCHlch(19.36, 37.93, 348.24°)
OKLaboklab(32.01% 0.1136 -0.0202)
OKLCHoklch(32.01% 0.115 349.9)
XYZxyz(5.1770, 2.8317, 4.4108)
Luminance0.0283 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F3B #0F5A2E
analogous
#530F5A #5A0F3B #5A0F15
triadic
#5A0F3B #3B5A0F #0F3B5A
tetradic
#5A0F3B #5A530F #0F5A2E #0F155A
square
#5A0F3B #5A530F #0F5A2E #0F155A
split-complementary
#5A0F3B #155A0F #0F5A53
monochromatic
#1A0411 #260619 #5A0F3B #8E185D #C32080

Accessibility & contrast

On white

13.41
#5A0F3B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A0F3B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F3B
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F3B#FFFFFF#000000##FFFFFF
##5A0F3B1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C263C
Deuteranopia (green-blind)
#323439
Tritanopia (blue-blind)
#610A23
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a0f3b;
/* rgb */ color: rgb(90, 15, 59);
/* oklch */ color: oklch(32.0% 0.115 349.9);
Tailwind
colors: {
  custom: {
    50: '#8c5771',
    500: '#5a0f3b',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f3b;
$custom-light: #8c5771;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f3b",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 59
  },
  "hsl": {
    "h": 324.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32009,
    "c": 0.11541,
    "h": 349.9
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#5A0F3B
secondary
#31945A
accent
#EE843A
background
#F8F5F6
surface
#F0E9EC
border
#CBC5C7
text
#0D0307
muted
#7D787A

Preview Lab

Preview with #5A0F3B

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

Preview Lab → · Contrast checker → · Palette generator →

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