#541979#541979

#541979 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.154 H 308.3°. Best body text is #FFFFFF at 11.72:1 contrast (WCAG AA passes).

Color values

HEX#541979
RGBrgb(84, 25, 121)
HSLhsl(277, 66%, 29%)
HSVhsv(277, 79%, 47%)
CMYKcmyk(30.6%, 79.3%, 0%, 52.5%)
CIE-LABlab(23.54, 43.59, -42.51)
CIE-LCHlch(23.54, 60.89, 315.71°)
OKLaboklab(36.05% 0.0954 -0.1207)
OKLCHoklch(36.05% 0.154 308.3)
XYZxyz(7.4543, 3.9607, 18.4572)
Luminance0.0396 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541979 #3E7919
analogous
#241979 #541979 #79196E
triadic
#541979 #795419 #197954
tetradic
#541979 #792419 #3E7919 #196E79
square
#541979 #792419 #3E7919 #196E79
split-complementary
#541979 #6E7919 #197924
monochromatic
#120519 #310F46 #541979 #7723AC #9837D6

Accessibility & contrast

On white

11.72
#541979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#541979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541979
11.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541979#FFFFFF#000000##FFFFFF
##5419791.0011.721.7911.72
#FFFFFF11.721.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.721.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541979;
/* rgb */ color: rgb(84, 25, 121);
/* oklch */ color: oklch(36.1% 0.154 308.3);
Tailwind
colors: {
  custom: {
    50: '#885da0',
    500: '#541979',
    950: '#000000',
  },
}
SCSS
$custom: #541979;
$custom-light: #885da0;
$custom-dark: #000000;
JSON
{
  "hex": "#541979",
  "rgb": {
    "r": 84,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 276.875,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36051,
    "c": 0.15391,
    "h": 308.3
  },
  "luminance": 0.03961
}

Semantic roles & 50–950 ramp

primary
#541979
secondary
#6AAE40
accent
#E93F80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #541979

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

Preview Lab → · Contrast checker → · Palette generator →

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