#541772#541772

#541772 is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.3% C 0.149 H 311.5°. Best body text is #FFFFFF at 12.05:1 contrast (WCAG AA passes).

Color values

HEX#541772
RGBrgb(84, 23, 114)
HSLhsl(280, 66%, 27%)
HSVhsv(280, 80%, 45%)
CMYKcmyk(26.3%, 79.8%, 0%, 55.3%)
CIE-LABlab(22.70, 42.77, -39.40)
CIE-LCHlch(22.70, 58.15, 317.35°)
OKLaboklab(35.28% 0.0988 -0.1116)
OKLCHoklch(35.28% 0.149 311.5)
XYZxyz(6.9992, 3.7127, 16.2642)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541772 #357217
analogous
#271772 #541772 #721763
triadic
#541772 #725417 #177254
tetradic
#541772 #722717 #357217 #176372
square
#541772 #722717 #357217 #176372
split-complementary
#541772 #637217 #177227
monochromatic
#130519 #2E0D3F #541772 #7A21A5 #9E2ED5

Accessibility & contrast

On white

12.05
#541772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#541772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541772
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541772#FFFFFF#000000##FFFFFF
##5417721.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#053770
Tritanopia (blue-blind)
#502D44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541772;
/* rgb */ color: rgb(84, 23, 114);
/* oklch */ color: oklch(35.3% 0.149 311.5);
Tailwind
colors: {
  custom: {
    50: '#885c9b',
    500: '#541772',
    950: '#000000',
  },
}
SCSS
$custom: #541772;
$custom-light: #885c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541772",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 280.22,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35281,
    "c": 0.14905,
    "h": 311.5
  },
  "luminance": 0.03713
}

Semantic roles & 50–950 ramp

primary
#541772
secondary
#60A83D
accent
#E93E77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541772

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

Preview Lab → · Contrast checker → · Palette generator →

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