#541F71#541F71

#541F71 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.138 H 311.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#541F71
RGBrgb(84, 31, 113)
HSLhsl(279, 57%, 28%)
HSVhsv(279, 73%, 44%)
CMYKcmyk(25.7%, 72.6%, 0%, 55.7%)
CIE-LABlab(23.86, 39.03, -36.88)
CIE-LCHlch(23.86, 53.69, 316.62°)
OKLaboklab(36.08% 0.0905 -0.1042)
OKLCHoklch(36.08% 0.138 311)
XYZxyz(7.1262, 4.0572, 16.0273)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F71 #3C711F
analogous
#2B1F71 #541F71 #711F65
triadic
#541F71 #71541F #1F7154
tetradic
#541F71 #712B1F #3C711F #1F6571
square
#541F71 #712B1F #3C711F #1F6571
split-complementary
#541F71 #65711F #1F712B
monochromatic
#120718 #301241 #541F71 #782CA1 #9940CB

Accessibility & contrast

On white

11.59
#541F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#541F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F71
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F71#FFFFFF#000000##FFFFFF
##541F711.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#133A6F
Tritanopia (blue-blind)
#503145
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541f71;
/* rgb */ color: rgb(84, 31, 113);
/* oklch */ color: oklch(36.1% 0.138 311.0);
Tailwind
colors: {
  custom: {
    50: '#875f9a',
    500: '#541f71',
    950: '#000000',
  },
}
SCSS
$custom: #541f71;
$custom-light: #875f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#541f71",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 278.78,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.36081,
    "c": 0.13802,
    "h": 311
  },
  "luminance": 0.04057
}

Semantic roles & 50–950 ramp

primary
#541F71
secondary
#68A547
accent
#E0487E
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541F71

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

Preview Lab → · Contrast checker → · Palette generator →

#541F71 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva