#541171#541171

#541171 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.154 H 312.6°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#541171
RGBrgb(84, 17, 113)
HSLhsl(282, 74%, 25%)
HSVhsv(282, 85%, 44%)
CMYKcmyk(25.7%, 85%, 0%, 55.7%)
CIE-LABlab(21.87, 44.73, -40.10)
CIE-LCHlch(21.87, 60.07, 318.12°)
OKLaboklab(34.67% 0.1043 -0.1136)
OKLCHoklch(34.67% 0.154 312.6)
XYZxyz(6.8367, 3.4782, 15.9308)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541171 #2E7111
analogous
#241171 #541171 #71115E
triadic
#541171 #715411 #117154
tetradic
#541171 #712411 #2E7111 #115E71
square
#541171 #712411 #2E7111 #115E71
split-complementary
#541171 #5E7111 #117124
monochromatic
#14041B #2C093C #541171 #7C19A6 #A321DB

Accessibility & contrast

On white

12.38
#541171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541171
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541171#FFFFFF#000000##FFFFFF
##5411711.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003174
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#512942
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #541171;
/* rgb */ color: rgb(84, 17, 113);
/* oklch */ color: oklch(34.7% 0.154 312.6);
Tailwind
colors: {
  custom: {
    50: '#88599a',
    500: '#541171',
    950: '#000000',
  },
}
SCSS
$custom: #541171;
$custom-light: #88599a;
$custom-dark: #000000;
JSON
{
  "hex": "#541171",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 281.875,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34671,
    "c": 0.15422,
    "h": 312.6
  },
  "luminance": 0.03478
}

Semantic roles & 50–950 ramp

primary
#541171
secondary
#58A836
accent
#F1376F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541171

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

Preview Lab → · Contrast checker → · Palette generator →

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