#5A1153#5A1153

#5A1153 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.5% C 0.130 H 332.4°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#5A1153
RGBrgb(90, 17, 83)
HSLhsl(306, 68%, 21%)
HSVhsv(306, 81%, 35%)
CMYKcmyk(0%, 81.1%, 7.8%, 64.7%)
CIE-LABlab(20.83, 40.11, -21.93)
CIE-LCHlch(20.83, 45.72, 331.33°)
OKLaboklab(33.47% 0.1154 -0.0603)
OKLCHoklch(33.47% 0.13 332.4)
XYZxyz(5.9783, 3.1996, 8.4847)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1153 #115A18
analogous
#3C115A #5A1153 #5A112E
triadic
#5A1153 #535A11 #11535A
tetradic
#5A1153 #5A3C11 #115A18 #112E5A
square
#5A1153 #5A3C11 #115A18 #112E5A
split-complementary
#5A1153 #2E5A11 #115A3C
monochromatic
#1A0518 #270724 #5A1153 #8D1B82 #C124B2

Accessibility & contrast

On white

12.81
#5A1153 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1153
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1153#FFFFFF#000000##FFFFFF
##5A11531.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2C55
Deuteranopia (green-blind)
#2A3651
Tritanopia (blue-blind)
#5E1931
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1153;
/* rgb */ color: rgb(90, 17, 83);
/* oklch */ color: oklch(33.5% 0.130 332.4);
Tailwind
colors: {
  custom: {
    50: '#8c5883',
    500: '#5a1153',
    950: '#000000',
  },
}
SCSS
$custom: #5a1153;
$custom-light: #8c5883;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1153",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 83
  },
  "hsl": {
    "h": 305.753,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33472,
    "c": 0.13017,
    "h": 332.4
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#5A1153
secondary
#34933D
accent
#EB4D3D
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #5A1153

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

Preview Lab → · Contrast checker → · Palette generator →

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