#542CA2#542CA2

#542CA2 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.8% C 0.177 H 292.5°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#542CA2
RGBrgb(84, 44, 162)
HSLhsl(260, 57%, 40%)
HSVhsv(260, 73%, 64%)
CMYKcmyk(48.1%, 72.8%, 0%, 36.5%)
CIE-LABlab(30.14, 45.33, -57.19)
CIE-LCHlch(30.14, 72.98, 308.40°)
OKLaboklab(41.79% 0.0679 -0.164)
OKLCHoklch(41.79% 0.178 292.5)
XYZxyz(11.0766, 6.2944, 34.8067)
Luminance0.0630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CA2 #7AA22C
analogous
#2C3FA2 #542CA2 #8F2CA2
triadic
#542CA2 #A2542C #2CA254
tetradic
#542CA2 #A22C3F #7AA22C #2CA28F
square
#542CA2 #A22C3F #7AA22C #2CA28F
split-complementary
#542CA2 #A28F2C #3FA22C
monochromatic
#221242 #3B1F72 #542CA2 #6F40CB #9370D8

Accessibility & contrast

On white

9.30
#542CA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#542CA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CA2
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CA2#FFFFFF#000000##FFFFFF
##542CA21.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#3C4B64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542ca2;
/* rgb */ color: rgb(84, 44, 162);
/* oklch */ color: oklch(41.8% 0.177 292.5);
Tailwind
colors: {
  custom: {
    50: '#8c69be',
    500: '#542ca2',
    950: '#000000',
  },
}
SCSS
$custom: #542ca2;
$custom-light: #8c69be;
$custom-dark: #000000;
JSON
{
  "hex": "#542ca2",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 162
  },
  "hsl": {
    "h": 260.339,
    "s": 57.282,
    "l": 40.392
  },
  "oklch": {
    "l": 0.41792,
    "c": 0.1775,
    "h": 292.5
  },
  "luminance": 0.06295
}

Semantic roles & 50–950 ramp

primary
#542CA2
secondary
#A3BF6A
accent
#E147AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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