#541872#541872

#541872 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.4% C 0.148 H 311.4°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#541872
RGBrgb(84, 24, 114)
HSLhsl(280, 65%, 27%)
HSVhsv(280, 79%, 45%)
CMYKcmyk(26.3%, 78.9%, 0%, 55.3%)
CIE-LABlab(22.84, 42.37, -39.17)
CIE-LCHlch(22.84, 57.70, 317.25°)
OKLaboklab(35.38% 0.0979 -0.1109)
OKLCHoklch(35.38% 0.148 311.4)
XYZxyz(7.0195, 3.7532, 16.2710)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541872 #367218
analogous
#271872 #541872 #721863
triadic
#541872 #725418 #187254
tetradic
#541872 #722718 #367218 #186372
square
#541872 #722718 #367218 #186372
split-complementary
#541872 #637218 #187227
monochromatic
#130519 #2F0D3F #541872 #7923A5 #9D31D4

Accessibility & contrast

On white

12.00
#541872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#541872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541872
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541872#FFFFFF#000000##FFFFFF
##5418721.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541872;
/* rgb */ color: rgb(84, 24, 114);
/* oklch */ color: oklch(35.4% 0.148 311.4);
Tailwind
colors: {
  custom: {
    50: '#885c9b',
    500: '#541872',
    950: '#000000',
  },
}
SCSS
$custom: #541872;
$custom-light: #885c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541872",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 280,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35379,
    "c": 0.14792,
    "h": 311.4
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#541872
secondary
#61A73E
accent
#E84078
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541872

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

Preview Lab → · Contrast checker → · Palette generator →

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