#5A0F48#5A0F48

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

Color values

HEX#5A0F48
RGBrgb(90, 15, 72)
HSLhsl(314, 71%, 21%)
HSVhsv(314, 83%, 35%)
CMYKcmyk(0%, 83.3%, 20%, 64.7%)
CIE-LABlab(19.98, 38.98, -15.78)
CIE-LCHlch(19.98, 42.06, 337.96°)
OKLaboklab(32.66% 0.1163 -0.0427)
OKLCHoklch(32.66% 0.124 339.9)
XYZxyz(5.5571, 2.9837, 6.4129)
Luminance0.0298 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F48 #0F5A21
analogous
#460F5A #5A0F48 #5A0F22
triadic
#5A0F48 #485A0F #0F485A
tetradic
#5A0F48 #5A460F #0F5A21 #0F225A
square
#5A0F48 #5A460F #0F5A21 #0F225A
split-complementary
#5A0F48 #225A0F #0F5A46
monochromatic
#1A0415 #26061E #5A0F48 #8E1872 #C3209C

Accessibility & contrast

On white

13.15
#5A0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F48
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F48#FFFFFF#000000##FFFFFF
##5A0F481.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152949
Deuteranopia (green-blind)
#2E3446
Tritanopia (blue-blind)
#60122A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #5a0f48;
/* rgb */ color: rgb(90, 15, 72);
/* oklch */ color: oklch(32.7% 0.124 339.9);
Tailwind
colors: {
  custom: {
    50: '#8c577b',
    500: '#5a0f48',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f48;
$custom-light: #8c577b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f48",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 314.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32663,
    "c": 0.12392,
    "h": 339.9
  },
  "luminance": 0.02983
}

Semantic roles & 50–950 ramp

primary
#5A0F48
secondary
#319449
accent
#EE653A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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