#541F74#541F74

#541F74 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.3% C 0.141 H 309.6°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#541F74
RGBrgb(84, 31, 116)
HSLhsl(277, 58%, 29%)
HSVhsv(277, 73%, 45%)
CMYKcmyk(27.6%, 73.3%, 0%, 54.5%)
CIE-LABlab(24.08, 39.74, -38.44)
CIE-LCHlch(24.08, 55.29, 315.95°)
OKLaboklab(36.31% 0.0901 -0.1088)
OKLCHoklch(36.31% 0.141 309.6)
XYZxyz(7.2979, 4.1259, 16.9315)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F74 #3F741F
analogous
#2A1F74 #541F74 #741F6A
triadic
#541F74 #74541F #1F7454
tetradic
#541F74 #742A1F #3F741F #1F6A74
square
#541F74 #742A1F #3F741F #1F6A74
split-complementary
#541F74 #6A741F #1F742A
monochromatic
#110618 #311244 #541F74 #772CA4 #9841CC

Accessibility & contrast

On white

11.51
#541F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#541F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F74
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F74#FFFFFF#000000##FFFFFF
##541F741.0011.511.8311.51
#FFFFFF11.511.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003776
Deuteranopia (green-blind)
#0E3A72
Tritanopia (blue-blind)
#4F3247
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541f74;
/* rgb */ color: rgb(84, 31, 116);
/* oklch */ color: oklch(36.3% 0.141 309.6);
Tailwind
colors: {
  custom: {
    50: '#88609d',
    500: '#541f74',
    950: '#000000',
  },
}
SCSS
$custom: #541f74;
$custom-light: #88609d;
$custom-dark: #000000;
JSON
{
  "hex": "#541f74",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 277.412,
    "s": 57.823,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36311,
    "c": 0.14128,
    "h": 309.6
  },
  "luminance": 0.04126
}

Semantic roles & 50–950 ramp

primary
#541F74
secondary
#6BA847
accent
#E14781
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541F74

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

Preview Lab → · Contrast checker → · Palette generator →

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