#5A0F59#5A0F59

#5A0F59 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.7% C 0.137 H 328.7°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#5A0F59
RGBrgb(90, 15, 89)
HSLhsl(301, 71%, 21%)
HSVhsv(301, 83%, 35%)
CMYKcmyk(0%, 83.3%, 1.1%, 64.7%)
CIE-LABlab(20.97, 41.82, -25.73)
CIE-LCHlch(20.97, 49.10, 328.40°)
OKLaboklab(33.69% 0.1173 -0.0713)
OKLCHoklch(33.69% 0.137 328.7)
XYZxyz(6.1904, 3.2370, 9.7480)
Luminance0.0324 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F59 #0F5A10
analogous
#350F5A #5A0F59 #5A0F33
triadic
#5A0F59 #595A0F #0F595A
tetradic
#5A0F59 #5A350F #0F5A10 #0F335A
square
#5A0F59 #5A350F #0F5A10 #0F335A
split-complementary
#5A0F59 #335A0F #0F5A35
monochromatic
#1A041A #260625 #5A0F59 #8E188D #C320C1

Accessibility & contrast

On white

12.75
#5A0F59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A0F59 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F59
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F59#FFFFFF#000000##FFFFFF
##5A0F591.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5B
Deuteranopia (green-blind)
#253657
Tritanopia (blue-blind)
#5D1B34
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a0f59;
/* rgb */ color: rgb(90, 15, 89);
/* oklch */ color: oklch(33.7% 0.137 328.7);
Tailwind
colors: {
  custom: {
    50: '#8c5888',
    500: '#5a0f59',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f59;
$custom-light: #8c5888;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f59",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 89
  },
  "hsl": {
    "h": 300.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33693,
    "c": 0.13725,
    "h": 328.7
  },
  "luminance": 0.03237
}

Semantic roles & 50–950 ramp

primary
#5A0F59
secondary
#319433
accent
#EE3C3A
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A0F59

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

Preview Lab → · Contrast checker → · Palette generator →

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