#541B66#541B66

#541B66 is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.132 H 316.9°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#541B66
RGBrgb(84, 27, 102)
HSLhsl(286, 58%, 25%)
HSVhsv(286, 74%, 40%)
CMYKcmyk(17.6%, 73.5%, 0%, 60%)
CIE-LABlab(22.40, 38.37, -32.09)
CIE-LCHlch(22.40, 50.02, 320.10°)
OKLaboklab(34.79% 0.0963 -0.0901)
OKLCHoklch(34.79% 0.132 316.9)
XYZxyz(6.4460, 3.6283, 12.9286)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541B66 #2D661B
analogous
#2E1B66 #541B66 #661B52
triadic
#541B66 #66541B #1B6654
tetradic
#541B66 #662E1B #2D661B #1B5266
square
#541B66 #662E1B #2D661B #1B5266
split-complementary
#541B66 #52661B #1B662E
monochromatic
#140618 #2C0E36 #541B66 #7C2896 #A435C7

Accessibility & contrast

On white

12.17
#541B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#541B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541B66
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541B66#FFFFFF#000000##FFFFFF
##541B661.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#1C3764
Tritanopia (blue-blind)
#532A3E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541b66;
/* rgb */ color: rgb(84, 27, 102);
/* oklch */ color: oklch(34.8% 0.132 316.9);
Tailwind
colors: {
  custom: {
    50: '#875d92',
    500: '#541b66',
    950: '#000000',
  },
}
SCSS
$custom: #541b66;
$custom-light: #875d92;
$custom-dark: #000000;
JSON
{
  "hex": "#541b66",
  "rgb": {
    "r": 84,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 285.6,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34787,
    "c": 0.1319,
    "h": 316.9
  },
  "luminance": 0.03628
}

Semantic roles & 50–950 ramp

primary
#541B66
secondary
#579B41
accent
#E1466C
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #541B66

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

Preview Lab → · Contrast checker → · Palette generator →

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