#541272#541272

#541272 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.154 H 312.0°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#541272
RGBrgb(84, 18, 114)
HSLhsl(281, 73%, 26%)
HSVhsv(281, 84%, 45%)
CMYKcmyk(26.3%, 84.2%, 0%, 55.3%)
CIE-LABlab(22.06, 44.62, -40.43)
CIE-LCHlch(22.06, 60.21, 317.82°)
OKLaboklab(34.83% 0.1033 -0.1146)
OKLCHoklch(34.83% 0.154 312)
XYZxyz(6.9092, 3.5325, 16.2342)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541272 #307212
analogous
#241272 #541272 #721260
triadic
#541272 #725412 #127254
tetradic
#541272 #722412 #307212 #126072
square
#541272 #722412 #307212 #126072
split-complementary
#541272 #607212 #127224
monochromatic
#13041A #2D0A3D #541272 #7B1AA7 #A223DC

Accessibility & contrast

On white

12.31
#541272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541272
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541272#FFFFFF#000000##FFFFFF
##5412721.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541272;
/* rgb */ color: rgb(84, 18, 114);
/* oklch */ color: oklch(34.8% 0.154 312.0);
Tailwind
colors: {
  custom: {
    50: '#885a9b',
    500: '#541272',
    950: '#000000',
  },
}
SCSS
$custom: #541272;
$custom-light: #885a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#541272",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 281.25,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34834,
    "c": 0.15424,
    "h": 312
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#541272
secondary
#5BA937
accent
#EF3872
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541272

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

Preview Lab → · Contrast checker → · Palette generator →

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