#5A0F42#5A0F42

#5A0F42 is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.3% C 0.120 H 344.3°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#5A0F42
RGBrgb(90, 15, 66)
HSLhsl(319, 71%, 21%)
HSVhsv(319, 83%, 35%)
CMYKcmyk(0%, 83.3%, 26.7%, 64.7%)
CIE-LABlab(19.68, 38.09, -12.11)
CIE-LCHlch(19.68, 39.97, 342.36°)
OKLaboklab(32.35% 0.1153 -0.0323)
OKLCHoklch(32.35% 0.12 344.3)
XYZxyz(5.3709, 2.9092, 5.4319)
Luminance0.0291 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F42 #0F5A27
analogous
#4C0F5A #5A0F42 #5A0F1C
triadic
#5A0F42 #425A0F #0F425A
tetradic
#5A0F42 #5A4C0F #0F5A27 #0F1C5A
square
#5A0F42 #5A4C0F #0F5A27 #0F1C5A
split-complementary
#5A0F42 #1C5A0F #0F5A4C
monochromatic
#1A0413 #26061C #5A0F42 #8E1868 #C3208F

Accessibility & contrast

On white

13.28
#5A0F42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F42
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F42#FFFFFF#000000##FFFFFF
##5A0F421.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#192843
Deuteranopia (green-blind)
#303440
Tritanopia (blue-blind)
#610E27
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a0f42;
/* rgb */ color: rgb(90, 15, 66);
/* oklch */ color: oklch(32.3% 0.120 344.3);
Tailwind
colors: {
  custom: {
    50: '#8c5776',
    500: '#5a0f42',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f42;
$custom-light: #8c5776;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f42",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 66
  },
  "hsl": {
    "h": 319.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32346,
    "c": 0.11975,
    "h": 344.3
  },
  "luminance": 0.02909
}

Semantic roles & 50–950 ramp

primary
#5A0F42
secondary
#319451
accent
#EE733A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #5A0F42

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

Preview Lab → · Contrast checker → · Palette generator →

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