#5A0F4D#5A0F4D

#5A0F4D is a dark, vivid pink. Relative luminance 0.031; OKLCH L 32.9% C 0.128 H 336.3°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#5A0F4D
RGBrgb(90, 15, 77)
HSLhsl(310, 71%, 21%)
HSVhsv(310, 83%, 35%)
CMYKcmyk(0%, 83.3%, 14.4%, 64.7%)
CIE-LABlab(20.25, 39.77, -18.78)
CIE-LCHlch(20.25, 43.98, 334.73°)
OKLaboklab(32.95% 0.1169 -0.0512)
OKLCHoklch(32.95% 0.128 336.3)
XYZxyz(5.7269, 3.0517, 7.3072)
Luminance0.0305 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F4D #0F5A1C
analogous
#410F5A #5A0F4D #5A0F27
triadic
#5A0F4D #4D5A0F #0F4D5A
tetradic
#5A0F4D #5A410F #0F5A1C #0F275A
square
#5A0F4D #5A410F #0F5A1C #0F275A
split-complementary
#5A0F4D #275A0F #0F5A41
monochromatic
#1A0416 #260620 #5A0F4D #8E187A #C320A7

Accessibility & contrast

On white

13.04
#5A0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#5A0F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F4D
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F4D#FFFFFF#000000##FFFFFF
##5A0F4D1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#2C354B
Tritanopia (blue-blind)
#5F152D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0f4d;
/* rgb */ color: rgb(90, 15, 77);
/* oklch */ color: oklch(32.9% 0.128 336.3);
Tailwind
colors: {
  custom: {
    50: '#8c577f',
    500: '#5a0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f4d;
$custom-light: #8c577f;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f4d",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 310.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32946,
    "c": 0.12764,
    "h": 336.3
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#5A0F4D
secondary
#319442
accent
#EE593A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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