#541266#541266

#541266 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.143 H 317.7°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#541266
RGBrgb(84, 18, 102)
HSLhsl(287, 70%, 24%)
HSVhsv(287, 82%, 40%)
CMYKcmyk(17.6%, 82.4%, 0%, 60%)
CIE-LABlab(21.12, 42.03, -34.15)
CIE-LCHlch(21.12, 54.16, 320.90°)
OKLaboklab(33.88% 0.1057 -0.0961)
OKLCHoklch(33.88% 0.143 317.7)
XYZxyz(6.2704, 3.2770, 12.8700)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541266 #246612
analogous
#2A1266 #541266 #66124E
triadic
#541266 #665412 #126654
tetradic
#541266 #662A12 #246612 #124E66
square
#541266 #662A12 #246612 #124E66
split-complementary
#541266 #4E6612 #12662A
monochromatic
#15051A #290932 #541266 #7F1B9A #AA24CE

Accessibility & contrast

On white

12.69
#541266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#541266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541266
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541266#FFFFFF#000000##FFFFFF
##5412661.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F68
Deuteranopia (green-blind)
#153564
Tritanopia (blue-blind)
#53253C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #541266;
/* rgb */ color: rgb(84, 18, 102);
/* oklch */ color: oklch(33.9% 0.143 317.7);
Tailwind
colors: {
  custom: {
    50: '#875992',
    500: '#541266',
    950: '#000000',
  },
}
SCSS
$custom: #541266;
$custom-light: #875992;
$custom-dark: #000000;
JSON
{
  "hex": "#541266",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 287.143,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.33876,
    "c": 0.14289,
    "h": 317.7
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#541266
secondary
#4C9E36
accent
#ED3B61
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #541266

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

Preview Lab → · Contrast checker → · Palette generator →

#541266 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva