#542CA4#542CA4

#542CA4 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.0% C 0.180 H 292.0°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#542CA4
RGBrgb(84, 44, 164)
HSLhsl(260, 58%, 41%)
HSVhsv(260, 73%, 64%)
CMYKcmyk(48.8%, 73.2%, 0%, 35.7%)
CIE-LABlab(30.32, 45.89, -58.12)
CIE-LCHlch(30.32, 74.05, 308.30°)
OKLaboklab(41.97% 0.0675 -0.1667)
OKLCHoklch(41.97% 0.18 292)
XYZxyz(11.2558, 6.3661, 35.7505)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CA4 #7CA42C
analogous
#2C40A4 #542CA4 #902CA4
triadic
#542CA4 #A4542C #2CA454
tetradic
#542CA4 #A42C40 #7CA42C #2CA490
square
#542CA4 #A42C40 #7CA42C #2CA490
split-complementary
#542CA4 #A4902C #40A42C
monochromatic
#231243 #3B1F74 #542CA4 #6F41CC #9471D9

Accessibility & contrast

On white

9.24
#542CA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#542CA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CA4
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CA4#FFFFFF#000000##FFFFFF
##542CA41.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A7
Deuteranopia (green-blind)
#0045A2
Tritanopia (blue-blind)
#3A4B65
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542ca4;
/* rgb */ color: rgb(84, 44, 164);
/* oklch */ color: oklch(42.0% 0.180 292.0);
Tailwind
colors: {
  custom: {
    50: '#8c69c0',
    500: '#542ca4',
    950: '#000000',
  },
}
SCSS
$custom: #542ca4;
$custom-light: #8c69c0;
$custom-dark: #000000;
JSON
{
  "hex": "#542ca4",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 164
  },
  "hsl": {
    "h": 260,
    "s": 57.692,
    "l": 40.784
  },
  "oklch": {
    "l": 0.41969,
    "c": 0.17984,
    "h": 292
  },
  "luminance": 0.06367
}

Semantic roles & 50–950 ramp

primary
#542CA4
secondary
#A4C06B
accent
#E147AE
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542CA4

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

Preview Lab → · Contrast checker → · Palette generator →

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