#5A0F4A#5A0F4A

#5A0F4A is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.8% C 0.125 H 338.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#5A0F4A
RGBrgb(90, 15, 74)
HSLhsl(313, 71%, 21%)
HSVhsv(313, 83%, 35%)
CMYKcmyk(0%, 83.3%, 17.8%, 64.7%)
CIE-LABlab(20.09, 39.29, -16.99)
CIE-LCHlch(20.09, 42.81, 336.62°)
OKLaboklab(32.77% 0.1166 -0.0461)
OKLCHoklch(32.77% 0.125 338.4)
XYZxyz(5.6234, 3.0103, 6.7621)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F4A #0F5A1F
analogous
#440F5A #5A0F4A #5A0F24
triadic
#5A0F4A #4A5A0F #0F4A5A
tetradic
#5A0F4A #5A440F #0F5A1F #0F245A
square
#5A0F4A #5A440F #0F5A1F #0F245A
split-complementary
#5A0F4A #245A0F #0F5A44
monochromatic
#1A0416 #26061F #5A0F4A #8E1875 #C320A0

Accessibility & contrast

On white

13.11
#5A0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#5A0F4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F4A
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F4A#FFFFFF#000000##FFFFFF
##5A0F4A1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13294C
Deuteranopia (green-blind)
#2D3548
Tritanopia (blue-blind)
#60132B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a0f4a;
/* rgb */ color: rgb(90, 15, 74);
/* oklch */ color: oklch(32.8% 0.125 338.4);
Tailwind
colors: {
  custom: {
    50: '#8c577c',
    500: '#5a0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f4a;
$custom-light: #8c577c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f4a",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 312.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32774,
    "c": 0.12538,
    "h": 338.4
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#5A0F4A
secondary
#319446
accent
#EE603A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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