#542E78#542E78

#542E78 is a dark, vivid violet. Relative luminance 0.052; OKLCH L 38.7% C 0.124 H 305.0°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#542E78
RGBrgb(84, 46, 120)
HSLhsl(271, 45%, 33%)
HSVhsv(271, 62%, 47%)
CMYKcmyk(30%, 61.7%, 0%, 52.9%)
CIE-LABlab(27.28, 32.76, -35.84)
CIE-LCHlch(27.28, 48.56, 312.43°)
OKLaboklab(38.71% 0.0709 -0.1013)
OKLCHoklch(38.71% 0.124 305)
XYZxyz(8.0226, 5.1949, 18.3457)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E78 #52782E
analogous
#2F2E78 #542E78 #782E77
triadic
#542E78 #78542E #2E7854
tetradic
#542E78 #782F2E #52782E #2E7778
square
#542E78 #782F2E #52782E #2E7778
split-complementary
#542E78 #77782E #2E782F
monochromatic
#160C20 #351D4C #542E78 #733FA4 #925FC2

Accessibility & contrast

On white

10.30
#542E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#542E78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E78
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E78#FFFFFF#000000##FFFFFF
##542E781.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C3F7A
Deuteranopia (green-blind)
#1E4176
Tritanopia (blue-blind)
#4E3D4E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #542e78;
/* rgb */ color: rgb(84, 46, 120);
/* oklch */ color: oklch(38.7% 0.124 305.0);
Tailwind
colors: {
  custom: {
    50: '#87699f',
    500: '#542e78',
    950: '#000000',
  },
}
SCSS
$custom: #542e78;
$custom-light: #87699f;
$custom-dark: #000000;
JSON
{
  "hex": "#542e78",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 120
  },
  "hsl": {
    "h": 270.811,
    "s": 44.578,
    "l": 32.549
  },
  "oklch": {
    "l": 0.38711,
    "c": 0.12359,
    "h": 305
  },
  "luminance": 0.05195
}

Semantic roles & 50–950 ramp

primary
#542E78
secondary
#80A85A
accent
#D45492
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #542E78

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

Preview Lab → · Contrast checker → · Palette generator →

#542E78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva