#541277#541277

#541277 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.159 H 309.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#541277
RGBrgb(84, 18, 119)
HSLhsl(279, 74%, 27%)
HSVhsv(279, 85%, 47%)
CMYKcmyk(29.4%, 84.9%, 0%, 53.3%)
CIE-LABlab(22.48, 45.73, -42.97)
CIE-LCHlch(22.48, 62.74, 316.78°)
OKLaboklab(35.25% 0.102 -0.122)
OKLCHoklch(35.25% 0.159 309.9)
XYZxyz(7.2016, 3.6495, 17.7742)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#541277 #357712
analogous
#221277 #541277 #771268
triadic
#541277 #775412 #127754
tetradic
#541277 #772212 #357712 #126877
square
#541277 #772212 #357712 #126877
split-complementary
#541277 #687712 #127722
monochromatic
#13041B #2E0A42 #541277 #7A1AAC #9E25DE

Accessibility & contrast

On white

12.14
#541277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #541277
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##541277#FFFFFF#000000##FFFFFF
##5412771.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003775
Tritanopia (blue-blind)
#4F2D46
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #541277;
/* rgb */ color: rgb(84, 18, 119);
/* oklch */ color: oklch(35.3% 0.159 309.9);
Tailwind
colors: {
  custom: {
    50: '#895a9f',
    500: '#541277',
    950: '#000000',
  },
}
SCSS
$custom: #541277;
$custom-light: #895a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#541277",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 119
  },
  "hsl": {
    "h": 279.208,
    "s": 73.723,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35254,
    "c": 0.15902,
    "h": 309.9
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#541277
secondary
#60AD37
accent
#F03778
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #541277

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

Preview Lab → · Contrast checker → · Palette generator →

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