#5A0F47#5A0F47

#5A0F47 is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.6% C 0.123 H 340.6°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#5A0F47
RGBrgb(90, 15, 71)
HSLhsl(315, 71%, 21%)
HSVhsv(315, 83%, 35%)
CMYKcmyk(0%, 83.3%, 21.1%, 64.7%)
CIE-LABlab(19.93, 38.83, -15.18)
CIE-LCHlch(19.93, 41.69, 338.65°)
OKLaboklab(32.61% 0.1162 -0.0409)
OKLCHoklch(32.61% 0.123 340.6)
XYZxyz(5.5248, 2.9708, 6.2425)
Luminance0.0297 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F47 #0F5A22
analogous
#470F5A #5A0F47 #5A0F21
triadic
#5A0F47 #475A0F #0F475A
tetradic
#5A0F47 #5A470F #0F5A22 #0F215A
square
#5A0F47 #5A470F #0F5A22 #0F215A
split-complementary
#5A0F47 #215A0F #0F5A47
monochromatic
#1A0415 #26061E #5A0F47 #8E1870 #C3209A

Accessibility & contrast

On white

13.17
#5A0F47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#5A0F47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F47
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F47#FFFFFF#000000##FFFFFF
##5A0F471.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152948
Deuteranopia (green-blind)
#2E3445
Tritanopia (blue-blind)
#60112A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a0f47;
/* rgb */ color: rgb(90, 15, 71);
/* oklch */ color: oklch(32.6% 0.123 340.6);
Tailwind
colors: {
  custom: {
    50: '#8c577a',
    500: '#5a0f47',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f47;
$custom-light: #8c577a;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f47",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 71
  },
  "hsl": {
    "h": 315.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32608,
    "c": 0.1232,
    "h": 340.6
  },
  "luminance": 0.0297
}

Semantic roles & 50–950 ramp

primary
#5A0F47
secondary
#31944A
accent
#EE673A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A0F47

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

Preview Lab → · Contrast checker → · Palette generator →

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