#5A0F5E#5A0F5E

#5A0F5E is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.141 H 325.8°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#5A0F5E
RGBrgb(90, 15, 94)
HSLhsl(297, 72%, 21%)
HSVhsv(297, 84%, 37%)
CMYKcmyk(4.3%, 84%, 0%, 63.1%)
CIE-LABlab(21.30, 42.73, -28.54)
CIE-LCHlch(21.30, 51.38, 326.27°)
OKLaboklab(34.03% 0.117 -0.0795)
OKLCHoklch(34.03% 0.141 325.8)
XYZxyz(6.4075, 3.3239, 10.8916)
Luminance0.0332 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F5E #135E0F
analogous
#330F5E #5A0F5E #5E0F3B
triadic
#5A0F5E #5E5A0F #0F5E5A
tetradic
#5A0F5E #5E330F #135E0F #0F3B5E
square
#5A0F5E #5E330F #135E0F #0F3B5E
split-complementary
#5A0F5E #3B5E0F #0F5E33
monochromatic
#19041A #270729 #5A0F5E #8D1793 #BF20C8

Accessibility & contrast

On white

12.62
#5A0F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#5A0F5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A0F5E
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F5E#FFFFFF#000000##FFFFFF
##5A0F5E1.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D60
Deuteranopia (green-blind)
#22365C
Tritanopia (blue-blind)
#5C1E37
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a0f5e;
/* rgb */ color: rgb(90, 15, 94);
/* oklch */ color: oklch(34.0% 0.141 325.8);
Tailwind
colors: {
  custom: {
    50: '#8c588c',
    500: '#5a0f5e',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f5e;
$custom-light: #8c588c;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f5e",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 94
  },
  "hsl": {
    "h": 296.962,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.34032,
    "c": 0.14145,
    "h": 325.8
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#5A0F5E
secondary
#379731
accent
#EF3942
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A0F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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