#541157#541157

#541157 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.130 H 326.2°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).

Color values

HEX#541157
RGBrgb(84, 17, 87)
HSLhsl(297, 67%, 20%)
HSVhsv(297, 80%, 34%)
CMYKcmyk(3.4%, 80.5%, 0%, 65.9%)
CIE-LABlab(19.94, 39.38, -26.10)
CIE-LCHlch(19.94, 47.24, 326.46°)
OKLaboklab(32.7% 0.1082 -0.0726)
OKLCHoklch(32.7% 0.13 326.2)
XYZxyz(5.5768, 2.9742, 9.2953)
Luminance0.0297 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541157 #145711
analogous
#311157 #541157 #571137
triadic
#541157 #575411 #115754
tetradic
#541157 #573111 #145711 #113757
square
#541157 #573111 #145711 #113757
split-complementary
#541157 #375711 #115731
monochromatic
#19051A #230724 #541157 #851B8A #B725BD

Accessibility & contrast

On white

13.17
#541157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#541157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541157
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541157#FFFFFF#000000##FFFFFF
##5411571.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#223355
Tritanopia (blue-blind)
#561D33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #541157;
/* rgb */ color: rgb(84, 17, 87);
/* oklch */ color: oklch(32.7% 0.130 326.2);
Tailwind
colors: {
  custom: {
    50: '#875887',
    500: '#541157',
    950: '#000000',
  },
}
SCSS
$custom: #541157;
$custom-light: #875887;
$custom-dark: #000000;
JSON
{
  "hex": "#541157",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 297.429,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.32702,
    "c": 0.13029,
    "h": 326.2
  },
  "luminance": 0.02974
}

Semantic roles & 50–950 ramp

primary
#541157
secondary
#389034
accent
#EA3E45
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #541157

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

Preview Lab → · Contrast checker → · Palette generator →

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