#541F6E#541F6E

#541F6E is a dark, vivid purple. Relative luminance 0.040; OKLCH L 35.9% C 0.135 H 312.4°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#541F6E
RGBrgb(84, 31, 110)
HSLhsl(280, 56%, 28%)
HSVhsv(280, 72%, 43%)
CMYKcmyk(23.6%, 71.8%, 0%, 56.9%)
CIE-LABlab(23.64, 38.32, -35.30)
CIE-LCHlch(23.64, 52.10, 317.35°)
OKLaboklab(35.85% 0.0908 -0.0996)
OKLCHoklch(35.85% 0.135 312.4)
XYZxyz(6.9601, 3.9908, 15.1525)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541F6E #396E1F
analogous
#2C1F6E #541F6E #6E1F60
triadic
#541F6E #6E541F #1F6E54
tetradic
#541F6E #6E2C1F #396E1F #1F606E
square
#541F6E #6E2C1F #396E1F #1F606E
split-complementary
#541F6E #606E1F #1F6E2C
monochromatic
#120718 #30123E #541F6E #782C9E #9B3FC9

Accessibility & contrast

On white

11.68
#541F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#541F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541F6E
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541F6E#FFFFFF#000000##FFFFFF
##541F6E1.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#17396C
Tritanopia (blue-blind)
#512F44
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541f6e;
/* rgb */ color: rgb(84, 31, 110);
/* oklch */ color: oklch(35.9% 0.135 312.4);
Tailwind
colors: {
  custom: {
    50: '#875f98',
    500: '#541f6e',
    950: '#000000',
  },
}
SCSS
$custom: #541f6e;
$custom-light: #875f98;
$custom-dark: #000000;
JSON
{
  "hex": "#541f6e",
  "rgb": {
    "r": 84,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 280.253,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35855,
    "c": 0.13478,
    "h": 312.4
  },
  "luminance": 0.03991
}

Semantic roles & 50–950 ramp

primary
#541F6E
secondary
#65A247
accent
#DF487A
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #541F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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