#542C8A#542C8A

#542C8A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.8% C 0.149 H 299.0°. Best body text is #FFFFFF at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#542C8A
RGBrgb(84, 44, 138)
HSLhsl(266, 52%, 36%)
HSVhsv(266, 68%, 54%)
CMYKcmyk(39.1%, 68.1%, 0%, 45.9%)
CIE-LABlab(28.17, 38.71, -45.69)
CIE-LCHlch(28.17, 59.89, 310.27°)
OKLaboklab(39.77% 0.0721 -0.1302)
OKLCHoklch(39.77% 0.149 299)
XYZxyz(9.1431, 5.5211, 24.6238)
Luminance0.0552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542C8A #628A2C
analogous
#2C338A #542C8A #832C8A
triadic
#542C8A #8A542C #2C8A54
tetradic
#542C8A #8A2C33 #628A2C #2C8A83
square
#542C8A #8A2C33 #628A2C #2C8A83
split-complementary
#542C8A #8A832C #338A2C
monochromatic
#1C0E2D #381D5C #542C8A #703BB8 #9063CD

Accessibility & contrast

On white

9.98
#542C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#542C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542C8A
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542C8A#FFFFFF#000000##FFFFFF
##542C8A1.009.982.109.98
#FFFFFF9.981.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#004288
Tritanopia (blue-blind)
#484257
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542c8a;
/* rgb */ color: rgb(84, 44, 138);
/* oklch */ color: oklch(39.8% 0.149 299.0);
Tailwind
colors: {
  custom: {
    50: '#8968ad',
    500: '#542c8a',
    950: '#000000',
  },
}
SCSS
$custom: #542c8a;
$custom-light: #8968ad;
$custom-dark: #000000;
JSON
{
  "hex": "#542c8a",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 138
  },
  "hsl": {
    "h": 265.532,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39768,
    "c": 0.14885,
    "h": 299
  },
  "luminance": 0.05521
}

Semantic roles & 50–950 ramp

primary
#542C8A
secondary
#8FB45E
accent
#DB4D9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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