#5A1155#5A1155

#5A1155 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.132 H 331.1°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#5A1155
RGBrgb(90, 17, 85)
HSLhsl(304, 68%, 21%)
HSVhsv(304, 81%, 35%)
CMYKcmyk(0%, 81.1%, 5.6%, 64.7%)
CIE-LABlab(20.95, 40.46, -23.09)
CIE-LCHlch(20.95, 46.58, 330.29°)
OKLaboklab(33.6% 0.1154 -0.0636)
OKLCHoklch(33.6% 0.132 331.1)
XYZxyz(6.0566, 3.2309, 8.8972)
Luminance0.0323 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A1155 #115A16
analogous
#3A115A #5A1155 #5A1130
triadic
#5A1155 #555A11 #11555A
tetradic
#5A1155 #5A3A11 #115A16 #11305A
square
#5A1155 #5A3A11 #115A16 #11305A
split-complementary
#5A1155 #305A11 #115A3A
monochromatic
#1A0518 #270724 #5A1155 #8D1B86 #C124B6

Accessibility & contrast

On white

12.76
#5A1155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#5A1155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A1155
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A1155#FFFFFF#000000##FFFFFF
##5A11551.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C57
Deuteranopia (green-blind)
#283653
Tritanopia (blue-blind)
#5E1A32
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #5a1155;
/* rgb */ color: rgb(90, 17, 85);
/* oklch */ color: oklch(33.6% 0.132 331.1);
Tailwind
colors: {
  custom: {
    50: '#8c5985',
    500: '#5a1155',
    950: '#000000',
  },
}
SCSS
$custom: #5a1155;
$custom-light: #8c5985;
$custom-dark: #000000;
JSON
{
  "hex": "#5a1155",
  "rgb": {
    "r": 90,
    "g": 17,
    "b": 85
  },
  "hsl": {
    "h": 304.11,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.33596,
    "c": 0.13181,
    "h": 331.1
  },
  "luminance": 0.0323
}

Semantic roles & 50–950 ramp

primary
#5A1155
secondary
#34933A
accent
#EB493D
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #5A1155

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

Preview Lab → · Contrast checker → · Palette generator →

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