#541158#541158

#541158 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.131 H 325.5°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#541158
RGBrgb(84, 17, 88)
HSLhsl(297, 68%, 21%)
HSVhsv(297, 81%, 35%)
CMYKcmyk(4.5%, 80.7%, 0%, 65.5%)
CIE-LABlab(20.01, 39.57, -26.66)
CIE-LCHlch(20.01, 47.71, 326.02°)
OKLaboklab(32.77% 0.1082 -0.0742)
OKLCHoklch(32.77% 0.131 325.5)
XYZxyz(5.6179, 2.9907, 9.5120)
Luminance0.0299 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541158 #155811
analogous
#301158 #541158 #581138
triadic
#541158 #585411 #115854
tetradic
#541158 #583011 #155811 #113858
square
#541158 #583011 #155811 #113858
split-complementary
#541158 #385811 #115830
monochromatic
#18051A #230725 #541158 #851B8B #B625BF

Accessibility & contrast

On white

13.14
#541158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#541158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541158
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541158#FFFFFF#000000##FFFFFF
##5411581.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#213356
Tritanopia (blue-blind)
#561E34
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #541158;
/* rgb */ color: rgb(84, 17, 88);
/* oklch */ color: oklch(32.8% 0.131 325.5);
Tailwind
colors: {
  custom: {
    50: '#875887',
    500: '#541158',
    950: '#000000',
  },
}
SCSS
$custom: #541158;
$custom-light: #875887;
$custom-dark: #000000;
JSON
{
  "hex": "#541158",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 296.62,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.3277,
    "c": 0.13118,
    "h": 325.5
  },
  "luminance": 0.0299
}

Semantic roles & 50–950 ramp

primary
#541158
secondary
#399134
accent
#EA3D47
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #541158

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

Preview Lab → · Contrast checker → · Palette generator →

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