#541F7F#541F7F

#541F7F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.153 H 305.2°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#541F7F
RGBrgb(84, 31, 127)
HSLhsl(273, 61%, 31%)
HSVhsv(273, 76%, 50%)
CMYKcmyk(33.9%, 75.6%, 0%, 50.2%)
CIE-LABlab(24.94, 42.42, -44.04)
CIE-LCHlch(24.94, 61.15, 313.93°)
OKLaboklab(37.19% 0.0882 -0.1253)
OKLCHoklch(37.19% 0.153 305.2)
XYZxyz(7.9760, 4.3971, 20.5031)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F7F #4A7F1F
analogous
#241F7F #541F7F #7F1F7A
triadic
#541F7F #7F541F #1F7F54
tetradic
#541F7F #7F241F #4A7F1F #1F7A7F
square
#541F7F #7F241F #4A7F1F #1F7A7F
split-complementary
#541F7F #7A7F1F #1F7F24
monochromatic
#13071D #33134E #541F7F #752BB0 #9346D2

Accessibility & contrast

On white

11.17
#541F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#541F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F7F
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F7F#FFFFFF#000000##FFFFFF
##541F7F1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #541f7f;
/* rgb */ color: rgb(84, 31, 127);
/* oklch */ color: oklch(37.2% 0.153 305.2);
Tailwind
colors: {
  custom: {
    50: '#8860a5',
    500: '#541f7f',
    950: '#000000',
  },
}
SCSS
$custom: #541f7f;
$custom-light: #8860a5;
$custom-dark: #000000;
JSON
{
  "hex": "#541f7f",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 127
  },
  "hsl": {
    "h": 273.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37193,
    "c": 0.15323,
    "h": 305.2
  },
  "luminance": 0.04397
}

Semantic roles & 50–950 ramp

primary
#541F7F
secondary
#77B248
accent
#E4448C
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #541F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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