#5A0F4C#5A0F4C

#5A0F4C is a dark, vivid pink. Relative luminance 0.030; OKLCH L 32.9% C 0.127 H 337.0°. Best body text is #FFFFFF at 13.06:1 contrast (WCAG AA passes).

Color values

HEX#5A0F4C
RGBrgb(90, 15, 76)
HSLhsl(311, 71%, 21%)
HSVhsv(311, 83%, 35%)
CMYKcmyk(0%, 83.3%, 15.6%, 64.7%)
CIE-LABlab(20.19, 39.61, -18.18)
CIE-LCHlch(20.19, 43.58, 335.34°)
OKLaboklab(32.89% 0.1168 -0.0495)
OKLCHoklch(32.89% 0.127 337)
XYZxyz(5.6919, 3.0377, 7.1226)
Luminance0.0304 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F4C #0F5A1D
analogous
#420F5A #5A0F4C #5A0F26
triadic
#5A0F4C #4C5A0F #0F4C5A
tetradic
#5A0F4C #5A420F #0F5A1D #0F265A
square
#5A0F4C #5A420F #0F5A1D #0F265A
split-complementary
#5A0F4C #265A0F #0F5A42
monochromatic
#1A0416 #260620 #5A0F4C #8E1878 #C320A5

Accessibility & contrast

On white

13.06
#5A0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F4C
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F4C#FFFFFF#000000##FFFFFF
##5A0F4C1.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294E
Deuteranopia (green-blind)
#2C354A
Tritanopia (blue-blind)
#5F142D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0f4c;
/* rgb */ color: rgb(90, 15, 76);
/* oklch */ color: oklch(32.9% 0.127 337.0);
Tailwind
colors: {
  custom: {
    50: '#8c577e',
    500: '#5a0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f4c;
$custom-light: #8c577e;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f4c",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 311.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32888,
    "c": 0.12688,
    "h": 337
  },
  "luminance": 0.03037
}

Semantic roles & 50–950 ramp

primary
#5A0F4C
secondary
#319444
accent
#EE5B3A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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