#541F73#541F73

#541F73 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.2% C 0.140 H 310.1°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#541F73
RGBrgb(84, 31, 115)
HSLhsl(278, 58%, 29%)
HSVhsv(278, 73%, 45%)
CMYKcmyk(27%, 73%, 0%, 54.9%)
CIE-LABlab(24.01, 39.50, -37.92)
CIE-LCHlch(24.01, 54.76, 316.17°)
OKLaboklab(36.23% 0.0902 -0.1073)
OKLCHoklch(36.23% 0.14 310.1)
XYZxyz(7.2401, 4.1027, 16.6268)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F73 #3E731F
analogous
#2A1F73 #541F73 #731F68
triadic
#541F73 #73541F #1F7354
tetradic
#541F73 #732A1F #3E731F #1F6873
square
#541F73 #732A1F #3E731F #1F6873
split-complementary
#541F73 #68731F #1F732A
monochromatic
#120618 #311243 #541F73 #772CA3 #9841CC

Accessibility & contrast

On white

11.53
#541F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#541F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F73
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F73#FFFFFF#000000##FFFFFF
##541F731.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003775
Deuteranopia (green-blind)
#103A71
Tritanopia (blue-blind)
#503146
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #541f73;
/* rgb */ color: rgb(84, 31, 115);
/* oklch */ color: oklch(36.2% 0.140 310.1);
Tailwind
colors: {
  custom: {
    50: '#87609c',
    500: '#541f73',
    950: '#000000',
  },
}
SCSS
$custom: #541f73;
$custom-light: #87609c;
$custom-dark: #000000;
JSON
{
  "hex": "#541f73",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 277.857,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36234,
    "c": 0.14019,
    "h": 310.1
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#541F73
secondary
#6AA747
accent
#E14780
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541F73

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

Preview Lab → · Contrast checker → · Palette generator →

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