#541173#541173

#541173 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.156 H 311.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#541173
RGBrgb(84, 17, 115)
HSLhsl(281, 74%, 26%)
HSVhsv(281, 85%, 45%)
CMYKcmyk(27%, 85.2%, 0%, 54.9%)
CIE-LABlab(22.03, 45.17, -41.12)
CIE-LCHlch(22.03, 61.08, 317.68°)
OKLaboklab(34.84% 0.1038 -0.1166)
OKLCHoklch(34.84% 0.156 311.7)
XYZxyz(6.9505, 3.5237, 16.5303)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541173 #307311
analogous
#231173 #541173 #731161
triadic
#541173 #735411 #117354
tetradic
#541173 #732311 #307311 #116173
square
#541173 #732311 #307311 #116173
split-complementary
#541173 #617311 #117323
monochromatic
#13041B #2D093E #541173 #7B19A8 #A221DE

Accessibility & contrast

On white

12.32
#541173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#541173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541173
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541173#FFFFFF#000000##FFFFFF
##5411731.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#502A43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541173;
/* rgb */ color: rgb(84, 17, 115);
/* oklch */ color: oklch(34.8% 0.156 311.7);
Tailwind
colors: {
  custom: {
    50: '#88599c',
    500: '#541173',
    950: '#000000',
  },
}
SCSS
$custom: #541173;
$custom-light: #88599c;
$custom-dark: #000000;
JSON
{
  "hex": "#541173",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 281.02,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34838,
    "c": 0.15612,
    "h": 311.7
  },
  "luminance": 0.03524
}

Semantic roles & 50–950 ramp

primary
#541173
secondary
#5BAA36
accent
#F13772
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541173

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

Preview Lab → · Contrast checker → · Palette generator →

#541173 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva