#541372#541372

#541372 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.153 H 311.9°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#541372
RGBrgb(84, 19, 114)
HSLhsl(281, 71%, 26%)
HSVhsv(281, 83%, 45%)
CMYKcmyk(26.3%, 83.3%, 0%, 55.3%)
CIE-LABlab(22.18, 44.27, -40.24)
CIE-LCHlch(22.18, 59.82, 317.73°)
OKLaboklab(34.92% 0.1024 -0.114)
OKLCHoklch(34.92% 0.153 311.9)
XYZxyz(6.9257, 3.5657, 16.2397)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541372 #317213
analogous
#241372 #541372 #721360
triadic
#541372 #725413 #137254
tetradic
#541372 #722413 #317213 #136072
square
#541372 #722413 #317213 #136072
split-complementary
#541372 #607213 #137224
monochromatic
#13041A #2D0A3E #541372 #7B1CA6 #A125DB

Accessibility & contrast

On white

12.26
#541372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#541372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541372
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541372#FFFFFF#000000##FFFFFF
##5413721.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541372;
/* rgb */ color: rgb(84, 19, 114);
/* oklch */ color: oklch(34.9% 0.153 311.9);
Tailwind
colors: {
  custom: {
    50: '#885a9b',
    500: '#541372',
    950: '#000000',
  },
}
SCSS
$custom: #541372;
$custom-light: #885a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541372",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 281.053,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.15326,
    "h": 311.9
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#541372
secondary
#5CA938
accent
#EE3A73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541372

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

Preview Lab → · Contrast checker → · Palette generator →

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