#5A1154#5A1154

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

Color values

HEX#5A1154
RGBrgb(90, 17, 84)
HSLhsl(305, 68%, 21%)
HSVhsv(305, 81%, 35%)
CMYKcmyk(0%, 81.1%, 6.7%, 64.7%)
CIE-LABlab(20.89, 40.29, -22.51)
CIE-LCHlch(20.89, 46.15, 330.80°)
OKLaboklab(33.53% 0.1154 -0.062)
OKLCHoklch(33.53% 0.131 331.8)
XYZxyz(6.0171, 3.2151, 8.6895)
Luminance0.0321 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1154 #115A17
analogous
#3B115A #5A1154 #5A112F
triadic
#5A1154 #545A11 #11545A
tetradic
#5A1154 #5A3B11 #115A17 #112F5A
square
#5A1154 #5A3B11 #115A17 #112F5A
split-complementary
#5A1154 #2F5A11 #115A3B
monochromatic
#1A0518 #270724 #5A1154 #8D1B84 #C124B4

Accessibility & contrast

On white

12.78
#5A1154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A1154
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1154#FFFFFF#000000##FFFFFF
##5A11541.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2C56
Deuteranopia (green-blind)
#293652
Tritanopia (blue-blind)
#5E1A32
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1154;
/* rgb */ color: rgb(90, 17, 84);
/* oklch */ color: oklch(33.5% 0.131 331.8);
Tailwind
colors: {
  custom: {
    50: '#8c5984',
    500: '#5a1154',
    950: '#000000',
  },
}
SCSS
$custom: #5a1154;
$custom-light: #8c5984;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1154",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 84
  },
  "hsl": {
    "h": 304.932,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33534,
    "c": 0.13099,
    "h": 331.8
  },
  "luminance": 0.03215
}

Semantic roles & 50–950 ramp

primary
#5A1154
secondary
#34933C
accent
#EB4B3D
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1154

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

Preview Lab → · Contrast checker → · Palette generator →

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