#5A1150#5A1150

#5A1150 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.128 H 334.4°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#5A1150
RGBrgb(90, 17, 80)
HSLhsl(308, 68%, 21%)
HSVhsv(308, 81%, 35%)
CMYKcmyk(0%, 81.1%, 11.1%, 64.7%)
CIE-LABlab(20.65, 39.60, -20.18)
CIE-LCHlch(20.65, 44.45, 333.00°)
OKLaboklab(33.29% 0.1152 -0.0553)
OKLCHoklch(33.29% 0.128 334.4)
XYZxyz(5.8649, 3.1543, 7.8878)
Luminance0.0315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1150 #115A1B
analogous
#3F115A #5A1150 #5A112B
triadic
#5A1150 #505A11 #11505A
tetradic
#5A1150 #5A3F11 #115A1B #112B5A
square
#5A1150 #5A3F11 #115A1B #112B5A
split-complementary
#5A1150 #2B5A11 #115A3F
monochromatic
#1A0517 #270722 #5A1150 #8D1B7E #C124AC

Accessibility & contrast

On white

12.88
#5A1150 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#5A1150 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1150
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1150#FFFFFF#000000##FFFFFF
##5A11501.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102B52
Deuteranopia (green-blind)
#2B354E
Tritanopia (blue-blind)
#5F182F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1150;
/* rgb */ color: rgb(90, 17, 80);
/* oklch */ color: oklch(33.3% 0.128 334.4);
Tailwind
colors: {
  custom: {
    50: '#8c5881',
    500: '#5a1150',
    950: '#000000',
  },
}
SCSS
$custom: #5a1150;
$custom-light: #8c5881;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1150",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 80
  },
  "hsl": {
    "h": 308.219,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3329,
    "c": 0.12776,
    "h": 334.4
  },
  "luminance": 0.03154
}

Semantic roles & 50–950 ramp

primary
#5A1150
secondary
#349341
accent
#EB553D
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1150

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

Preview Lab → · Contrast checker → · Palette generator →

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