#541257#541257

#541257 is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.129 H 326.1°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#541257
RGBrgb(84, 18, 87)
HSLhsl(297, 66%, 21%)
HSVhsv(297, 79%, 34%)
CMYKcmyk(3.4%, 79.3%, 0%, 65.9%)
CIE-LABlab(20.07, 39.01, -25.90)
CIE-LCHlch(20.07, 46.82, 326.42°)
OKLaboklab(32.79% 0.1072 -0.072)
OKLCHoklch(32.79% 0.129 326.1)
XYZxyz(5.5927, 3.0059, 9.3006)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541257 #155712
analogous
#311257 #541257 #571237
triadic
#541257 #575412 #125754
tetradic
#541257 #573112 #155712 #123757
square
#541257 #573112 #155712 #123757
split-complementary
#541257 #375712 #125731
monochromatic
#180519 #230824 #541257 #851C8A #B627BC

Accessibility & contrast

On white

13.12
#541257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#541257 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541257
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541257#FFFFFF#000000##FFFFFF
##5412571.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012B59
Deuteranopia (green-blind)
#223355
Tritanopia (blue-blind)
#561E33
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #541257;
/* rgb */ color: rgb(84, 18, 87);
/* oklch */ color: oklch(32.8% 0.129 326.1);
Tailwind
colors: {
  custom: {
    50: '#875887',
    500: '#541257',
    950: '#000000',
  },
}
SCSS
$custom: #541257;
$custom-light: #875887;
$custom-dark: #000000;
JSON
{
  "hex": "#541257",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 297.391,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.32793,
    "c": 0.12912,
    "h": 326.1
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#541257
secondary
#399035
accent
#E93F47
background
#F8F5F8
surface
#F0E9EF
border
#CBC5CA
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #541257

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

Preview Lab → · Contrast checker → · Palette generator →

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