#5A0E5D#5A0E5D

#5A0E5D is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.142 H 326.4°. Best body text is #FFFFFF at 12.68:1 contrast (WCAG AA passes).

Color values

HEX#5A0E5D
RGBrgb(90, 14, 93)
HSLhsl(298, 74%, 21%)
HSVhsv(298, 85%, 36%)
CMYKcmyk(3.2%, 84.9%, 0%, 63.5%)
CIE-LABlab(21.13, 42.85, -28.14)
CIE-LCHlch(21.13, 51.26, 326.70°)
OKLaboklab(33.89% 0.1179 -0.0783)
OKLCHoklch(33.89% 0.142 326.4)
XYZxyz(6.3492, 3.2785, 10.6522)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0E5D #115D0E
analogous
#320E5D #5A0E5D #5D0E38
triadic
#5A0E5D #5D5A0E #0E5D5A
tetradic
#5A0E5D #5D320E #115D0E #0E385D
square
#5A0E5D #5D320E #115D0E #0E385D
split-complementary
#5A0E5D #385D0E #0E5D32
monochromatic
#1A041B #270628 #5A0E5D #8D1692 #C11EC7

Accessibility & contrast

On white

12.68
#5A0E5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0E5D
12.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0E5D#FFFFFF#000000##FFFFFF
##5A0E5D1.0012.681.6612.68
#FFFFFF12.681.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#22365B
Tritanopia (blue-blind)
#5D1D36
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #5a0e5d;
/* rgb */ color: rgb(90, 14, 93);
/* oklch */ color: oklch(33.9% 0.142 326.4);
Tailwind
colors: {
  custom: {
    50: '#8c588b',
    500: '#5a0e5d',
    950: '#000000',
  },
}
SCSS
$custom: #5a0e5d;
$custom-light: #8c588b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0e5d",
  "rgb": {
    "r": 90,
    "g": 14,
    "b": 93
  },
  "hsl": {
    "h": 297.722,
    "s": 73.832,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33889,
    "c": 0.14157,
    "h": 326.4
  },
  "luminance": 0.03278
}

Semantic roles & 50–950 ramp

primary
#5A0E5D
secondary
#349730
accent
#F0373E
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A0E5D

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

Preview Lab → · Contrast checker → · Palette generator →

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