#5A0F57#5A0F57

#5A0F57 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.136 H 329.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#5A0F57
RGBrgb(90, 15, 87)
HSLhsl(302, 71%, 21%)
HSVhsv(302, 83%, 35%)
CMYKcmyk(0%, 83.3%, 3.3%, 64.7%)
CIE-LABlab(20.84, 41.46, -24.59)
CIE-LCHlch(20.84, 48.21, 329.33°)
OKLaboklab(33.56% 0.1173 -0.068)
OKLCHoklch(33.56% 0.136 329.9)
XYZxyz(6.1075, 3.2039, 9.3117)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F57 #0F5A12
analogous
#370F5A #5A0F57 #5A0F31
triadic
#5A0F57 #575A0F #0F575A
tetradic
#5A0F57 #5A370F #0F5A12 #0F315A
square
#5A0F57 #5A370F #0F5A12 #0F315A
split-complementary
#5A0F57 #315A0F #0F5A37
monochromatic
#1A0419 #260624 #5A0F57 #8E188A #C320BC

Accessibility & contrast

On white

12.80
#5A0F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#5A0F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F57
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F57#FFFFFF#000000##FFFFFF
##5A0F571.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042C59
Deuteranopia (green-blind)
#273655
Tritanopia (blue-blind)
#5E1A33
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a0f57;
/* rgb */ color: rgb(90, 15, 87);
/* oklch */ color: oklch(33.6% 0.136 329.9);
Tailwind
colors: {
  custom: {
    50: '#8c5887',
    500: '#5a0f57',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f57;
$custom-light: #8c5887;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f57",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 87
  },
  "hsl": {
    "h": 302.4,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33562,
    "c": 0.13559,
    "h": 329.9
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#5A0F57
secondary
#319435
accent
#EE413A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A0F57

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

Preview Lab → · Contrast checker → · Palette generator →

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