#5A0F55#5A0F55

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

Color values

HEX#5A0F55
RGBrgb(90, 15, 85)
HSLhsl(304, 71%, 21%)
HSVhsv(304, 83%, 35%)
CMYKcmyk(0%, 83.3%, 5.6%, 64.7%)
CIE-LABlab(20.72, 41.11, -23.45)
CIE-LCHlch(20.72, 47.33, 330.30°)
OKLaboklab(33.43% 0.1173 -0.0647)
OKLCHoklch(33.43% 0.134 331.1)
XYZxyz(6.0270, 3.1717, 8.8873)
Luminance0.0317 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F55 #0F5A14
analogous
#390F5A #5A0F55 #5A0F2F
triadic
#5A0F55 #555A0F #0F555A
tetradic
#5A0F55 #5A390F #0F5A14 #0F2F5A
square
#5A0F55 #5A390F #0F5A14 #0F2F5A
split-complementary
#5A0F55 #2F5A0F #0F5A39
monochromatic
#1A0419 #260623 #5A0F55 #8E1887 #C320B8

Accessibility & contrast

On white

12.85
#5A0F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F55
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F55#FFFFFF#000000##FFFFFF
##5A0F551.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072B57
Deuteranopia (green-blind)
#283553
Tritanopia (blue-blind)
#5E1932
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a0f55;
/* rgb */ color: rgb(90, 15, 85);
/* oklch */ color: oklch(33.4% 0.134 331.1);
Tailwind
colors: {
  custom: {
    50: '#8c5885',
    500: '#5a0f55',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f55;
$custom-light: #8c5885;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f55",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 304,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33434,
    "c": 0.13395,
    "h": 331.1
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#5A0F55
secondary
#319438
accent
#EE463A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A0F55

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

Preview Lab → · Contrast checker → · Palette generator →

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