#541168#541168

#541168 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.146 H 316.8°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#541168
RGBrgb(84, 17, 104)
HSLhsl(286, 72%, 24%)
HSVhsv(286, 84%, 41%)
CMYKcmyk(19.2%, 83.7%, 0%, 59.2%)
CIE-LABlab(21.15, 42.80, -35.41)
CIE-LCHlch(21.15, 55.54, 320.40°)
OKLaboklab(33.95% 0.1063 -0.0998)
OKLCHoklch(33.95% 0.146 316.8)
XYZxyz(6.3549, 3.2855, 13.3934)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541168 #256811
analogous
#281168 #541168 #681150
triadic
#541168 #685411 #116854
tetradic
#541168 #682811 #256811 #115068
square
#541168 #682811 #256811 #115068
split-complementary
#541168 #506811 #116828
monochromatic
#15041A #2A0833 #541168 #7E1A9D #A922D1

Accessibility & contrast

On white

12.67
#541168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#541168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541168
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541168#FFFFFF#000000##FFFFFF
##5411681.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#123566
Tritanopia (blue-blind)
#53253D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #541168;
/* rgb */ color: rgb(84, 17, 104);
/* oklch */ color: oklch(33.9% 0.146 316.8);
Tailwind
colors: {
  custom: {
    50: '#885994',
    500: '#541168',
    950: '#000000',
  },
}
SCSS
$custom: #541168;
$custom-light: #885994;
$custom-dark: #000000;
JSON
{
  "hex": "#541168",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 286.207,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.33947,
    "c": 0.14578,
    "h": 316.8
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#541168
secondary
#4DA035
accent
#EF3963
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #541168

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

Preview Lab → · Contrast checker → · Palette generator →

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