#541276#541276

#541276 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.158 H 310.3°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#541276
RGBrgb(84, 18, 118)
HSLhsl(280, 74%, 27%)
HSVhsv(280, 85%, 46%)
CMYKcmyk(28.8%, 84.7%, 0%, 53.7%)
CIE-LABlab(22.39, 45.50, -42.46)
CIE-LCHlch(22.39, 62.24, 316.98°)
OKLaboklab(35.17% 0.1022 -0.1205)
OKLCHoklch(35.17% 0.158 310.3)
XYZxyz(7.1418, 3.6256, 17.4596)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541276 #347612
analogous
#221276 #541276 #761266
triadic
#541276 #765412 #127654
tetradic
#541276 #762212 #347612 #126676
square
#541276 #762212 #347612 #126676
split-complementary
#541276 #667612 #127622
monochromatic
#13041B #2E0A41 #541276 #7A1AAB #9F25DE

Accessibility & contrast

On white

12.17
#541276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#541276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##541276#FFFFFF#000000##FFFFFF
##5412761.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)
#003379
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4F2C45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541276;
/* rgb */ color: rgb(84, 18, 118);
/* oklch */ color: oklch(35.2% 0.158 310.3);
Tailwind
colors: {
  custom: {
    50: '#885a9e',
    500: '#541276',
    950: '#000000',
  },
}
SCSS
$custom: #541276;
$custom-light: #885a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#541276",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 279.6,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.35169,
    "c": 0.15806,
    "h": 310.3
  },
  "luminance": 0.03625
}

Semantic roles & 50–950 ramp

primary
#541276
secondary
#5FAD37
accent
#F03876
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541276

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

Preview Lab → · Contrast checker → · Palette generator →

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