#5A1152#5A1152

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

Color values

HEX#5A1152
RGBrgb(90, 17, 82)
HSLhsl(307, 68%, 21%)
HSVhsv(307, 81%, 35%)
CMYKcmyk(0%, 81.1%, 8.9%, 64.7%)
CIE-LABlab(20.77, 39.94, -21.35)
CIE-LCHlch(20.77, 45.29, 331.87°)
OKLaboklab(33.41% 0.1153 -0.0586)
OKLCHoklch(33.41% 0.129 333)
XYZxyz(5.9399, 3.1843, 8.2828)
Luminance0.0318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1152 #115A19
analogous
#3D115A #5A1152 #5A112D
triadic
#5A1152 #525A11 #11525A
tetradic
#5A1152 #5A3D11 #115A19 #112D5A
square
#5A1152 #5A3D11 #115A19 #112D5A
split-complementary
#5A1152 #2D5A11 #115A3D
monochromatic
#1A0517 #270723 #5A1152 #8D1B81 #C124B0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5A1152#FFFFFF#000000##FFFFFF
##5A11521.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)
#0D2B54
Deuteranopia (green-blind)
#2A3650
Tritanopia (blue-blind)
#5E1930
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1152;
/* rgb */ color: rgb(90, 17, 82);
/* oklch */ color: oklch(33.4% 0.129 333.0);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5a1152',
    950: '#000000',
  },
}
SCSS
$custom: #5a1152;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1152",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 306.575,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.3341,
    "c": 0.12936,
    "h": 333
  },
  "luminance": 0.03184
}

Semantic roles & 50–950 ramp

primary
#5A1152
secondary
#34933E
accent
#EB503D
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1152

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

Preview Lab → · Contrast checker → · Palette generator →

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