#542C8D#542C8D

#542C8D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.152 H 298.1°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#542C8D
RGBrgb(84, 44, 141)
HSLhsl(265, 52%, 36%)
HSVhsv(265, 69%, 55%)
CMYKcmyk(40.4%, 68.8%, 0%, 44.7%)
CIE-LABlab(28.40, 39.53, -47.18)
CIE-LCHlch(28.40, 61.55, 309.96°)
OKLaboklab(40.01% 0.0717 -0.1346)
OKLCHoklch(40.01% 0.152 298.1)
XYZxyz(9.3633, 5.6091, 25.7835)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542C8D #658D2C
analogous
#2C358D #542C8D #852C8D
triadic
#542C8D #8D542C #2C8D54
tetradic
#542C8D #8D2C35 #658D2C #2C8D85
square
#542C8D #8D2C35 #658D2C #2C8D85
split-complementary
#542C8D #8D852C #358D2C
monochromatic
#1C0F30 #381D5E #542C8D #703BBC #9065CF

Accessibility & contrast

On white

9.90
#542C8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#542C8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542C8D
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542C8D#FFFFFF#000000##FFFFFF
##542C8D1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#464359
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542c8d;
/* rgb */ color: rgb(84, 44, 141);
/* oklch */ color: oklch(40.0% 0.152 298.1);
Tailwind
colors: {
  custom: {
    50: '#8968af',
    500: '#542c8d',
    950: '#000000',
  },
}
SCSS
$custom: #542c8d;
$custom-light: #8968af;
$custom-dark: #000000;
JSON
{
  "hex": "#542c8d",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 141
  },
  "hsl": {
    "h": 264.742,
    "s": 52.432,
    "l": 36.275
  },
  "oklch": {
    "l": 0.4001,
    "c": 0.15249,
    "h": 298.1
  },
  "luminance": 0.05609
}

Semantic roles & 50–950 ramp

primary
#542C8D
secondary
#92B560
accent
#DC4CA1
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542C8D

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

Preview Lab → · Contrast checker → · Palette generator →

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