#541474#541474

#541474 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.2% C 0.154 H 311.0°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#541474
RGBrgb(84, 20, 116)
HSLhsl(280, 71%, 27%)
HSVhsv(280, 83%, 45%)
CMYKcmyk(27.6%, 82.8%, 0%, 54.5%)
CIE-LABlab(22.47, 44.36, -41.06)
CIE-LCHlch(22.47, 60.45, 317.21°)
OKLaboklab(35.17% 0.1011 -0.1164)
OKLCHoklch(35.17% 0.154 311)
XYZxyz(7.0581, 3.6463, 16.8516)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541474 #347414
analogous
#241474 #541474 #741464
triadic
#541474 #745414 #147454
tetradic
#541474 #742414 #347414 #146474
square
#541474 #742414 #347414 #146474
split-complementary
#541474 #647414 #147424
monochromatic
#13051A #2E0B40 #541474 #7A1DA8 #9F28DA

Accessibility & contrast

On white

12.14
#541474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#541474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541474
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541474#FFFFFF#000000##FFFFFF
##5414741.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#502C44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541474;
/* rgb */ color: rgb(84, 20, 116);
/* oklch */ color: oklch(35.2% 0.154 311.0);
Tailwind
colors: {
  custom: {
    50: '#885a9d',
    500: '#541474',
    950: '#000000',
  },
}
SCSS
$custom: #541474;
$custom-light: #885a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#541474",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 280,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35168,
    "c": 0.15421,
    "h": 311
  },
  "luminance": 0.03646
}

Semantic roles & 50–950 ramp

primary
#541474
secondary
#5FAA3A
accent
#ED3A76
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541474

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

Preview Lab → · Contrast checker → · Palette generator →

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