#5A0F4B#5A0F4B

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

Color values

HEX#5A0F4B
RGBrgb(90, 15, 75)
HSLhsl(312, 71%, 21%)
HSVhsv(312, 83%, 35%)
CMYKcmyk(0%, 83.3%, 16.7%, 64.7%)
CIE-LABlab(20.14, 39.45, -17.59)
CIE-LCHlch(20.14, 43.19, 335.97°)
OKLaboklab(32.83% 0.1167 -0.0478)
OKLCHoklch(32.83% 0.126 337.7)
XYZxyz(5.6574, 3.0239, 6.9410)
Luminance0.0302 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F4B #0F5A1E
analogous
#430F5A #5A0F4B #5A0F25
triadic
#5A0F4B #4B5A0F #0F4B5A
tetradic
#5A0F4B #5A430F #0F5A1E #0F255A
square
#5A0F4B #5A430F #0F5A1E #0F255A
split-complementary
#5A0F4B #255A0F #0F5A43
monochromatic
#1A0416 #26061F #5A0F4B #8E1877 #C320A2

Accessibility & contrast

On white

13.09
#5A0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F4B
13.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F4B#FFFFFF#000000##FFFFFF
##5A0F4B1.0013.091.6013.09
#FFFFFF13.091.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12294D
Deuteranopia (green-blind)
#2C3549
Tritanopia (blue-blind)
#5F142C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0f4b;
/* rgb */ color: rgb(90, 15, 75);
/* oklch */ color: oklch(32.8% 0.126 337.7);
Tailwind
colors: {
  custom: {
    50: '#8c577d',
    500: '#5a0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f4b;
$custom-light: #8c577d;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f4b",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 312,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32831,
    "c": 0.12613,
    "h": 337.7
  },
  "luminance": 0.03023
}

Semantic roles & 50–950 ramp

primary
#5A0F4B
secondary
#319445
accent
#EE5E3A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0409
muted
#7D797B

Preview Lab

Preview with #5A0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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