#541879#541879

#541879 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.155 H 308.4°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#541879
RGBrgb(84, 24, 121)
HSLhsl(277, 67%, 28%)
HSVhsv(277, 80%, 47%)
CMYKcmyk(30.6%, 80.2%, 0%, 52.5%)
CIE-LABlab(23.40, 43.99, -42.74)
CIE-LCHlch(23.40, 61.33, 315.82°)
OKLaboklab(35.95% 0.0964 -0.1214)
OKLCHoklch(35.95% 0.155 308.4)
XYZxyz(7.4333, 3.9187, 18.4503)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541879 #3D7918
analogous
#231879 #541879 #79186D
triadic
#541879 #795418 #187954
tetradic
#541879 #792318 #3D7918 #186D79
square
#541879 #792318 #3D7918 #186D79
split-complementary
#541879 #6D7918 #187923
monochromatic
#12051A #310E46 #541879 #7722AC #9935D7

Accessibility & contrast

On white

11.77
#541879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#541879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541879
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541879#FFFFFF#000000##FFFFFF
##5418791.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367C
Deuteranopia (green-blind)
#003877
Tritanopia (blue-blind)
#4E3048
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541879;
/* rgb */ color: rgb(84, 24, 121);
/* oklch */ color: oklch(36.0% 0.155 308.4);
Tailwind
colors: {
  custom: {
    50: '#885ca0',
    500: '#541879',
    950: '#000000',
  },
}
SCSS
$custom: #541879;
$custom-light: #885ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#541879",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 277.113,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35952,
    "c": 0.15501,
    "h": 308.4
  },
  "luminance": 0.03919
}

Semantic roles & 50–950 ramp

primary
#541879
secondary
#69AE3F
accent
#EA3E80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #541879

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

Preview Lab → · Contrast checker → · Palette generator →

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