#541072#541072

#541072 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.156 H 312.2°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#541072
RGBrgb(84, 16, 114)
HSLhsl(282, 75%, 25%)
HSVhsv(282, 86%, 45%)
CMYKcmyk(26.3%, 86%, 0%, 55.3%)
CIE-LABlab(21.84, 45.27, -40.79)
CIE-LCHlch(21.84, 60.94, 317.98°)
OKLaboklab(34.68% 0.1048 -0.1156)
OKLCHoklch(34.68% 0.156 312.2)
XYZxyz(6.8781, 3.4705, 16.2239)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541072 #2E7210
analogous
#231072 #541072 #72105F
triadic
#541072 #725410 #107254
tetradic
#541072 #722310 #2E7210 #105F72
square
#541072 #722310 #2E7210 #105F72
split-complementary
#541072 #5F7210 #107223
monochromatic
#14041B #2C083C #541072 #7C18A8 #A31FDD

Accessibility & contrast

On white

12.40
#541072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#541072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541072
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541072#FFFFFF#000000##FFFFFF
##5410721.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541072;
/* rgb */ color: rgb(84, 16, 114);
/* oklch */ color: oklch(34.7% 0.156 312.2);
Tailwind
colors: {
  custom: {
    50: '#88599b',
    500: '#541072',
    950: '#000000',
  },
}
SCSS
$custom: #541072;
$custom-light: #88599b;
$custom-dark: #000000;
JSON
{
  "hex": "#541072",
  "rgb": {
    "r": 84,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 281.633,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34677,
    "c": 0.15608,
    "h": 312.2
  },
  "luminance": 0.0347
}

Semantic roles & 50–950 ramp

primary
#541072
secondary
#58A934
accent
#F2366F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541072

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

Preview Lab → · Contrast checker → · Palette generator →

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