#541273#541273

#541273 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.155 H 311.6°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#541273
RGBrgb(84, 18, 115)
HSLhsl(281, 73%, 26%)
HSVhsv(281, 84%, 45%)
CMYKcmyk(27%, 84.3%, 0%, 54.9%)
CIE-LABlab(22.14, 44.84, -40.94)
CIE-LCHlch(22.14, 60.72, 317.60°)
OKLaboklab(34.92% 0.103 -0.1161)
OKLCHoklch(34.92% 0.155 311.6)
XYZxyz(6.9664, 3.5554, 16.5356)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541273 #317312
analogous
#231273 #541273 #731261
triadic
#541273 #735412 #127354
tetradic
#541273 #732312 #317312 #126173
square
#541273 #732312 #317312 #126173
split-complementary
#541273 #617312 #127323
monochromatic
#13041A #2D0A3E #541273 #7B1AA8 #A123DD

Accessibility & contrast

On white

12.27
#541273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541273
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541273#FFFFFF#000000##FFFFFF
##5412731.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003276
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#502B43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #541273;
/* rgb */ color: rgb(84, 18, 115);
/* oklch */ color: oklch(34.9% 0.155 311.6);
Tailwind
colors: {
  custom: {
    50: '#885a9c',
    500: '#541273',
    950: '#000000',
  },
}
SCSS
$custom: #541273;
$custom-light: #885a9c;
$custom-dark: #000000;
JSON
{
  "hex": "#541273",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 280.825,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34917,
    "c": 0.15519,
    "h": 311.6
  },
  "luminance": 0.03555
}

Semantic roles & 50–950 ramp

primary
#541273
secondary
#5CAA37
accent
#F03873
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541273

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

Preview Lab → · Contrast checker → · Palette generator →

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