#5A0F3F#5A0F3F

#5A0F3F is a dark, moderate pink. Relative luminance 0.029; OKLCH L 32.2% C 0.118 H 346.7°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#5A0F3F
RGBrgb(90, 15, 63)
HSLhsl(322, 71%, 21%)
HSVhsv(322, 83%, 35%)
CMYKcmyk(0%, 83.3%, 30%, 64.7%)
CIE-LABlab(19.54, 37.67, -10.25)
CIE-LCHlch(19.54, 39.04, 344.78°)
OKLaboklab(32.2% 0.1147 -0.0271)
OKLCHoklch(32.2% 0.118 346.7)
XYZxyz(5.2847, 2.8748, 4.9782)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F3F #0F5A2A
analogous
#4F0F5A #5A0F3F #5A0F19
triadic
#5A0F3F #3F5A0F #0F3F5A
tetradic
#5A0F3F #5A4F0F #0F5A2A #0F195A
square
#5A0F3F #5A4F0F #0F5A2A #0F195A
split-complementary
#5A0F3F #195A0F #0F5A4F
monochromatic
#1A0412 #26061A #5A0F3F #8E1864 #C32088

Accessibility & contrast

On white

13.34
#5A0F3F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#5A0F3F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F3F
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F3F#FFFFFF#000000##FFFFFF
##5A0F3F1.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A2740
Deuteranopia (green-blind)
#31343D
Tritanopia (blue-blind)
#610C25
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #5a0f3f;
/* rgb */ color: rgb(90, 15, 63);
/* oklch */ color: oklch(32.2% 0.118 346.7);
Tailwind
colors: {
  custom: {
    50: '#8c5774',
    500: '#5a0f3f',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f3f;
$custom-light: #8c5774;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f3f",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 63
  },
  "hsl": {
    "h": 321.6,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32197,
    "c": 0.11781,
    "h": 346.7
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#5A0F3F
secondary
#319455
accent
#EE7B3A
background
#F8F5F7
surface
#F0E9ED
border
#CBC5C8
text
#0C0308
muted
#7D787B

Preview Lab

Preview with #5A0F3F

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

Preview Lab → · Contrast checker → · Palette generator →

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