#5A0F54#5A0F54

#5A0F54 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.133 H 331.8°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5A0F54
RGBrgb(90, 15, 84)
HSLhsl(305, 71%, 21%)
HSVhsv(305, 83%, 35%)
CMYKcmyk(0%, 83.3%, 6.7%, 64.7%)
CIE-LABlab(20.66, 40.94, -22.87)
CIE-LCHlch(20.66, 46.90, 330.81°)
OKLaboklab(33.37% 0.1173 -0.063)
OKLCHoklch(33.37% 0.133 331.8)
XYZxyz(5.9875, 3.1559, 8.6796)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F54 #0F5A15
analogous
#3A0F5A #5A0F54 #5A0F2E
triadic
#5A0F54 #545A0F #0F545A
tetradic
#5A0F54 #5A3A0F #0F5A15 #0F2E5A
square
#5A0F54 #5A3A0F #0F5A15 #0F2E5A
split-complementary
#5A0F54 #2E5A0F #0F5A3A
monochromatic
#1A0418 #260623 #5A0F54 #8E1885 #C320B6

Accessibility & contrast

On white

12.88
#5A0F54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A0F54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F54
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F54#FFFFFF#000000##FFFFFF
##5A0F541.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082B56
Deuteranopia (green-blind)
#283552
Tritanopia (blue-blind)
#5E1931
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a0f54;
/* rgb */ color: rgb(90, 15, 84);
/* oklch */ color: oklch(33.4% 0.133 331.8);
Tailwind
colors: {
  custom: {
    50: '#8c5884',
    500: '#5a0f54',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f54;
$custom-light: #8c5884;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f54",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 84
  },
  "hsl": {
    "h": 304.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33371,
    "c": 0.13315,
    "h": 331.8
  },
  "luminance": 0.03155
}

Semantic roles & 50–950 ramp

primary
#5A0F54
secondary
#319439
accent
#EE483A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A0F54

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

Preview Lab → · Contrast checker → · Palette generator →

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