#5A0F5D#5A0F5D

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

Color values

HEX#5A0F5D
RGBrgb(90, 15, 93)
HSLhsl(298, 72%, 21%)
HSVhsv(298, 84%, 36%)
CMYKcmyk(3.2%, 83.9%, 0%, 63.5%)
CIE-LABlab(21.23, 42.55, -27.98)
CIE-LCHlch(21.23, 50.92, 326.67°)
OKLaboklab(33.96% 0.1171 -0.0778)
OKLCHoklch(33.96% 0.141 326.4)
XYZxyz(6.3629, 3.3061, 10.6568)
Luminance0.0331 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A0F5D #125D0F
analogous
#330F5D #5A0F5D #5D0F39
triadic
#5A0F5D #5D5A0F #0F5D5A
tetradic
#5A0F5D #5D330F #125D0F #0F395D
square
#5A0F5D #5D330F #125D0F #0F395D
split-complementary
#5A0F5D #395D0F #0F5D33
monochromatic
#19041A #270628 #5A0F5D #8D1792 #C020C6

Accessibility & contrast

On white

12.64
#5A0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A0F5D
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A0F5D#FFFFFF#000000##FFFFFF
##5A0F5D1.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a0f5d;
/* rgb */ color: rgb(90, 15, 93);
/* oklch */ color: oklch(34.0% 0.141 326.4);
Tailwind
colors: {
  custom: {
    50: '#8c588b',
    500: '#5a0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #5a0f5d;
$custom-light: #8c588b;
$custom-dark: #000000;
JSON
{
  "hex": "#5a0f5d",
  "rgb": {
    "r": 90,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 297.692,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.33963,
    "c": 0.14061,
    "h": 326.4
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#5A0F5D
secondary
#359631
accent
#EF3940
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #5A0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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