#541572#541572

#541572 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.1% C 0.151 H 311.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#541572
RGBrgb(84, 21, 114)
HSLhsl(281, 69%, 26%)
HSVhsv(281, 82%, 45%)
CMYKcmyk(26.3%, 81.6%, 0%, 55.3%)
CIE-LABlab(22.43, 43.55, -39.83)
CIE-LCHlch(22.43, 59.01, 317.55°)
OKLaboklab(35.09% 0.1007 -0.1128)
OKLCHoklch(35.09% 0.151 311.8)
XYZxyz(6.9610, 3.6362, 16.2515)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541572 #337215
analogous
#261572 #541572 #721562
triadic
#541572 #725415 #157254
tetradic
#541572 #722615 #337215 #156272
square
#541572 #722615 #337215 #156272
split-complementary
#541572 #627215 #157226
monochromatic
#13051A #2E0B3E #541572 #7A1FA6 #A02AD8

Accessibility & contrast

On white

12.16
#541572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#541572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541572
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541572#FFFFFF#000000##FFFFFF
##5415721.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#023770
Tritanopia (blue-blind)
#502C43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541572;
/* rgb */ color: rgb(84, 21, 114);
/* oklch */ color: oklch(35.1% 0.151 311.8);
Tailwind
colors: {
  custom: {
    50: '#885b9b',
    500: '#541572',
    950: '#000000',
  },
}
SCSS
$custom: #541572;
$custom-light: #885b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541572",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 280.645,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35093,
    "c": 0.15122,
    "h": 311.8
  },
  "luminance": 0.03636
}

Semantic roles & 50–950 ramp

primary
#541572
secondary
#5EA83B
accent
#EC3C75
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541572

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

Preview Lab → · Contrast checker → · Palette generator →

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