#541876#541876

#541876 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.152 H 309.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#541876
RGBrgb(84, 24, 118)
HSLhsl(278, 66%, 28%)
HSVhsv(278, 80%, 46%)
CMYKcmyk(28.8%, 79.7%, 0%, 53.7%)
CIE-LABlab(23.16, 43.29, -41.22)
CIE-LCHlch(23.16, 59.78, 316.40°)
OKLaboklab(35.7% 0.0971 -0.1169)
OKLCHoklch(35.7% 0.152 309.7)
XYZxyz(7.2522, 3.8462, 17.4964)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541876 #3A7618
analogous
#251876 #541876 #761869
triadic
#541876 #765418 #187654
tetradic
#541876 #762518 #3A7618 #186976
square
#541876 #762518 #3A7618 #186976
split-complementary
#541876 #697618 #187625
monochromatic
#120519 #300E43 #541876 #7822A9 #9B33D5

Accessibility & contrast

On white

11.87
#541876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#541876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541876
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541876#FFFFFF#000000##FFFFFF
##5418761.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003579
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#4F2F46
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #541876;
/* rgb */ color: rgb(84, 24, 118);
/* oklch */ color: oklch(35.7% 0.152 309.7);
Tailwind
colors: {
  custom: {
    50: '#885c9e',
    500: '#541876',
    950: '#000000',
  },
}
SCSS
$custom: #541876;
$custom-light: #885c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#541876",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 278.298,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35704,
    "c": 0.15196,
    "h": 309.7
  },
  "luminance": 0.03846
}

Semantic roles & 50–950 ramp

primary
#541876
secondary
#66AB3F
accent
#E93F7C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541876

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

Preview Lab → · Contrast checker → · Palette generator →

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