#5A0F56#5A0F56

#5A0F56 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.135 H 330.5°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).

Color values

HEX#5A0F56
RGBrgb(90, 15, 86)
HSLhsl(303, 71%, 21%)
HSVhsv(303, 83%, 35%)
CMYKcmyk(0%, 83.3%, 4.4%, 64.7%)
CIE-LABlab(20.78, 41.29, -24.02)
CIE-LCHlch(20.78, 47.77, 329.81°)
OKLaboklab(33.5% 0.1173 -0.0663)
OKLCHoklch(33.5% 0.135 330.5)
XYZxyz(6.0670, 3.1877, 9.0980)
Luminance0.0319 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F56 #0F5A13
analogous
#380F5A #5A0F56 #5A0F30
triadic
#5A0F56 #565A0F #0F565A
tetradic
#5A0F56 #5A380F #0F5A13 #0F305A
square
#5A0F56 #5A380F #0F5A13 #0F305A
split-complementary
#5A0F56 #305A0F #0F5A38
monochromatic
#1A0419 #260624 #5A0F56 #8E1888 #C320BA

Accessibility & contrast

On white

12.83
#5A0F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F56
12.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F56#FFFFFF#000000##FFFFFF
##5A0F561.0012.831.6412.83
#FFFFFF12.831.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052C58
Deuteranopia (green-blind)
#273654
Tritanopia (blue-blind)
#5E1A32
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a0f56;
/* rgb */ color: rgb(90, 15, 86);
/* oklch */ color: oklch(33.5% 0.135 330.5);
Tailwind
colors: {
  custom: {
    50: '#8c5886',
    500: '#5a0f56',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f56;
$custom-light: #8c5886;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f56",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 86
  },
  "hsl": {
    "h": 303.2,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.33498,
    "c": 0.13478,
    "h": 330.5
  },
  "luminance": 0.03187
}

Semantic roles & 50–950 ramp

primary
#5A0F56
secondary
#319436
accent
#EE433A
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A0F56

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

Preview Lab → · Contrast checker → · Palette generator →

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