#541F7D#541F7D

#541F7D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.0% C 0.151 H 305.9°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#541F7D
RGBrgb(84, 31, 125)
HSLhsl(274, 60%, 31%)
HSVhsv(274, 75%, 49%)
CMYKcmyk(32.8%, 75.2%, 0%, 51%)
CIE-LABlab(24.78, 41.93, -43.04)
CIE-LCHlch(24.78, 60.09, 314.25°)
OKLaboklab(37.03% 0.0886 -0.1223)
OKLCHoklch(37.03% 0.151 305.9)
XYZxyz(7.8470, 4.3455, 19.8234)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F7D #487D1F
analogous
#251F7D #541F7D #7D1F77
triadic
#541F7D #7D541F #1F7D54
tetradic
#541F7D #7D251F #487D1F #1F777D
square
#541F7D #7D251F #487D1F #1F777D
split-complementary
#541F7D #777D1F #1F7D25
monochromatic
#12071B #33134C #541F7D #752BAE #9445D1

Accessibility & contrast

On white

11.24
#541F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541F7D
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F7D#FFFFFF#000000##FFFFFF
##541F7D1.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#003B7B
Tritanopia (blue-blind)
#4D354C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #541f7d;
/* rgb */ color: rgb(84, 31, 125);
/* oklch */ color: oklch(37.0% 0.151 305.9);
Tailwind
colors: {
  custom: {
    50: '#8860a3',
    500: '#541f7d',
    950: '#000000',
  },
}
SCSS
$custom: #541f7d;
$custom-light: #8860a3;
$custom-dark: #000000;
JSON
{
  "hex": "#541f7d",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 273.83,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37029,
    "c": 0.15106,
    "h": 305.9
  },
  "luminance": 0.04345
}

Semantic roles & 50–950 ramp

primary
#541F7D
secondary
#75B048
accent
#E3448A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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