#541281#541281

#541281 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.169 H 305.9°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#541281
RGBrgb(84, 18, 129)
HSLhsl(276, 76%, 29%)
HSVhsv(276, 86%, 51%)
CMYKcmyk(34.9%, 86%, 0%, 49.4%)
CIE-LABlab(23.35, 48.00, -47.91)
CIE-LCHlch(23.35, 67.82, 315.06°)
OKLaboklab(36.13% 0.099 -0.1365)
OKLCHoklch(36.13% 0.169 305.9)
XYZxyz(7.8340, 3.9025, 21.1052)
Luminance0.0390 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541281 #3F8112
analogous
#1D1281 #541281 #811277
triadic
#541281 #815412 #128154
tetradic
#541281 #811D12 #3F8112 #127781
square
#541281 #811D12 #3F8112 #127781
split-complementary
#541281 #778112 #12811D
monochromatic
#11041B #310B4B #541281 #7719B7 #982CE2

Accessibility & contrast

On white

11.80
#541281 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#541281 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #541281
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541281#FFFFFF#000000##FFFFFF
##5412811.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#4C314C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #541281;
/* rgb */ color: rgb(84, 18, 129);
/* oklch */ color: oklch(36.1% 0.169 305.9);
Tailwind
colors: {
  custom: {
    50: '#895ba6',
    500: '#541281',
    950: '#000000',
  },
}
SCSS
$custom: #541281;
$custom-light: #895ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#541281",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 129
  },
  "hsl": {
    "h": 275.676,
    "s": 75.51,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36128,
    "c": 0.16865,
    "h": 305.9
  },
  "luminance": 0.03902
}

Semantic roles & 50–950 ramp

primary
#541281
secondary
#6BB738
accent
#F23682
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #541281

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

Preview Lab → · Contrast checker → · Palette generator →

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