#5A0F50#5A0F50

#5A0F50 is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.130 H 334.3°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#5A0F50
RGBrgb(90, 15, 80)
HSLhsl(308, 71%, 21%)
HSVhsv(308, 83%, 35%)
CMYKcmyk(0%, 83.3%, 11.1%, 64.7%)
CIE-LABlab(20.42, 40.26, -20.54)
CIE-LCHlch(20.42, 45.20, 332.97°)
OKLaboklab(33.12% 0.1171 -0.0563)
OKLCHoklch(33.12% 0.13 334.3)
XYZxyz(5.8353, 3.0950, 7.8779)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F50 #0F5A19
analogous
#3E0F5A #5A0F50 #5A0F2A
triadic
#5A0F50 #505A0F #0F505A
tetradic
#5A0F50 #5A3E0F #0F5A19 #0F2A5A
square
#5A0F50 #5A3E0F #0F5A19 #0F2A5A
split-complementary
#5A0F50 #2A5A0F #0F5A3E
monochromatic
#1A0417 #260621 #5A0F50 #8E187F #C320AD

Accessibility & contrast

On white

12.97
#5A0F50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#5A0F50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F50
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F50#FFFFFF#000000##FFFFFF
##5A0F501.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2A52
Deuteranopia (green-blind)
#2A354E
Tritanopia (blue-blind)
#5F162F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #5a0f50;
/* rgb */ color: rgb(90, 15, 80);
/* oklch */ color: oklch(33.1% 0.130 334.3);
Tailwind
colors: {
  custom: {
    50: '#8c5881',
    500: '#5a0f50',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f50;
$custom-light: #8c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f50",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 80
  },
  "hsl": {
    "h": 308,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33124,
    "c": 0.12996,
    "h": 334.3
  },
  "luminance": 0.03094
}

Semantic roles & 50–950 ramp

primary
#5A0F50
secondary
#31943E
accent
#EE523A
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A0F50

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

Preview Lab → · Contrast checker → · Palette generator →

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