#541F7E#541F7E

#541F7E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.152 H 305.5°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#541F7E
RGBrgb(84, 31, 126)
HSLhsl(273, 61%, 31%)
HSVhsv(273, 75%, 49%)
CMYKcmyk(33.3%, 75.4%, 0%, 50.6%)
CIE-LABlab(24.86, 42.18, -43.54)
CIE-LCHlch(24.86, 60.62, 314.09°)
OKLaboklab(37.11% 0.0884 -0.1238)
OKLCHoklch(37.11% 0.152 305.5)
XYZxyz(7.9112, 4.3712, 20.1616)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F7E #497E1F
analogous
#241F7E #541F7E #7E1F78
triadic
#541F7E #7E541F #1F7E54
tetradic
#541F7E #7E241F #497E1F #1F787E
square
#541F7E #7E241F #497E1F #1F787E
split-complementary
#541F7E #787E1F #1F7E24
monochromatic
#13071C #33134D #541F7E #752BAF #9446D1

Accessibility & contrast

On white

11.20
#541F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#541F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F7E
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F7E#FFFFFF#000000##FFFFFF
##541F7E1.0011.201.8711.20
#FFFFFF11.201.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#4C364D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541f7e;
/* rgb */ color: rgb(84, 31, 126);
/* oklch */ color: oklch(37.1% 0.152 305.5);
Tailwind
colors: {
  custom: {
    50: '#8860a4',
    500: '#541f7e',
    950: '#000000',
  },
}
SCSS
$custom: #541f7e;
$custom-light: #8860a4;
$custom-dark: #000000;
JSON
{
  "hex": "#541f7e",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 273.474,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37111,
    "c": 0.15214,
    "h": 305.5
  },
  "luminance": 0.04371
}

Semantic roles & 50–950 ramp

primary
#541F7E
secondary
#76B148
accent
#E4448B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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