#541172#541172

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

Color values

HEX#541172
RGBrgb(84, 17, 114)
HSLhsl(281, 74%, 26%)
HSVhsv(281, 85%, 45%)
CMYKcmyk(26.3%, 85.1%, 0%, 55.3%)
CIE-LABlab(21.95, 44.95, -40.61)
CIE-LCHlch(21.95, 60.58, 317.90°)
OKLaboklab(34.75% 0.1041 -0.1151)
OKLCHoklch(34.75% 0.155 312.1)
XYZxyz(6.8933, 3.5008, 16.2289)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541172 #2F7211
analogous
#231172 #541172 #72115F
triadic
#541172 #725411 #117254
tetradic
#541172 #722311 #2F7211 #115F72
square
#541172 #722311 #2F7211 #115F72
split-complementary
#541172 #5F7211 #117223
monochromatic
#14041B #2D093D #541172 #7B19A7 #A221DD

Accessibility & contrast

On white

12.35
#541172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541172
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541172#FFFFFF#000000##FFFFFF
##5411721.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541172;
/* rgb */ color: rgb(84, 17, 114);
/* oklch */ color: oklch(34.8% 0.155 312.1);
Tailwind
colors: {
  custom: {
    50: '#88599b',
    500: '#541172',
    950: '#000000',
  },
}
SCSS
$custom: #541172;
$custom-light: #88599b;
$custom-dark: #000000;
JSON
{
  "hex": "#541172",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 281.443,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34754,
    "c": 0.15517,
    "h": 312.1
  },
  "luminance": 0.03501
}

Semantic roles & 50–950 ramp

primary
#541172
secondary
#59A936
accent
#F13771
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541172

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

Preview Lab → · Contrast checker → · Palette generator →

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