#5A0F40#5A0F40

#5A0F40 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.2% C 0.118 H 345.9°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#5A0F40
RGBrgb(90, 15, 64)
HSLhsl(321, 71%, 21%)
HSVhsv(321, 83%, 35%)
CMYKcmyk(0%, 83.3%, 28.9%, 64.7%)
CIE-LABlab(19.58, 37.81, -10.87)
CIE-LCHlch(19.58, 39.34, 343.96°)
OKLaboklab(32.25% 0.1149 -0.0289)
OKLCHoklch(32.25% 0.118 345.9)
XYZxyz(5.3129, 2.8861, 5.1268)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F40 #0F5A29
analogous
#4E0F5A #5A0F40 #5A0F1A
triadic
#5A0F40 #405A0F #0F405A
tetradic
#5A0F40 #5A4E0F #0F5A29 #0F1A5A
square
#5A0F40 #5A4E0F #0F5A29 #0F1A5A
split-complementary
#5A0F40 #1A5A0F #0F5A4E
monochromatic
#1A0413 #26061B #5A0F40 #8E1865 #C3208B

Accessibility & contrast

On white

13.32
#5A0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#5A0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F40
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F40#FFFFFF#000000##FFFFFF
##5A0F401.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2741
Deuteranopia (green-blind)
#30343E
Tritanopia (blue-blind)
#610D26
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a0f40;
/* rgb */ color: rgb(90, 15, 64);
/* oklch */ color: oklch(32.2% 0.118 345.9);
Tailwind
colors: {
  custom: {
    50: '#8c5775',
    500: '#5a0f40',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f40;
$custom-light: #8c5775;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f40",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 320.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32246,
    "c": 0.11845,
    "h": 345.9
  },
  "luminance": 0.02885
}

Semantic roles & 50–950 ramp

primary
#5A0F40
secondary
#319453
accent
#EE783A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #5A0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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