#5A0C4D#5A0C4D

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

Color values

HEX#5A0C4D
RGBrgb(90, 12, 77)
HSLhsl(310, 76%, 20%)
HSVhsv(310, 87%, 35%)
CMYKcmyk(0%, 86.7%, 14.4%, 64.7%)
CIE-LABlab(19.94, 40.67, -19.27)
CIE-LCHlch(19.94, 45.01, 334.65°)
OKLaboklab(32.72% 0.1196 -0.0526)
OKLCHoklch(32.72% 0.131 336.3)
XYZxyz(5.6876, 2.9730, 7.2940)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0C4D #0C5A19
analogous
#400C5A #5A0C4D #5A0C26
triadic
#5A0C4D #4D5A0C #0C4D5A
tetradic
#5A0C4D #5A400C #0C5A19 #0C265A
square
#5A0C4D #5A400C #0C5A19 #0C265A
split-complementary
#5A0C4D #265A0C #0C5A40
monochromatic
#1B0417 #24051F #5A0C4D #90137B #C61AA9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A0C4D#FFFFFF#000000##FFFFFF
##5A0C4D1.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)
#0E294F
Deuteranopia (green-blind)
#2B344B
Tritanopia (blue-blind)
#5F132C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a0c4d;
/* rgb */ color: rgb(90, 12, 77);
/* oklch */ color: oklch(32.7% 0.131 336.3);
Tailwind
colors: {
  custom: {
    50: '#8c567f',
    500: '#5a0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #5a0c4d;
$custom-light: #8c567f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0c4d",
  "rgb": {
    "r": 90,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 310,
    "s": 76.471,
    "l": 20
  },
  "oklch": {
    "l": 0.32721,
    "c": 0.13067,
    "h": 336.3
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#5A0C4D
secondary
#2D953E
accent
#F35435
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C030A
muted
#7D787C

Preview Lab

Preview with #5A0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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