#542CA9#542CA9

#542CA9 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.4% C 0.186 H 290.9°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#542CA9
RGBrgb(84, 44, 169)
HSLhsl(259, 59%, 42%)
HSVhsv(259, 74%, 66%)
CMYKcmyk(50.3%, 74%, 0%, 33.7%)
CIE-LABlab(30.76, 47.29, -60.41)
CIE-LCHlch(30.76, 76.71, 308.05°)
OKLaboklab(42.42% 0.0663 -0.1734)
OKLCHoklch(42.42% 0.186 290.9)
XYZxyz(11.7162, 6.5503, 38.1754)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CA9 #81A92C
analogous
#2C43A9 #542CA9 #932CA9
triadic
#542CA9 #A9542C #2CA954
tetradic
#542CA9 #A92C43 #81A92C #2CA993
square
#542CA9 #A92C43 #81A92C #2CA993
split-complementary
#542CA9 #A9932C #43A92C
monochromatic
#241348 #3C1F78 #542CA9 #7044CE #9574DB

Accessibility & contrast

On white

9.09
#542CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#542CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CA9
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CA9#FFFFFF#000000##FFFFFF
##542CA91.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAD
Deuteranopia (green-blind)
#0046A7
Tritanopia (blue-blind)
#374D68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542ca9;
/* rgb */ color: rgb(84, 44, 169);
/* oklch */ color: oklch(42.4% 0.186 290.9);
Tailwind
colors: {
  custom: {
    50: '#8d69c4',
    500: '#542ca9',
    950: '#000000',
  },
}
SCSS
$custom: #542ca9;
$custom-light: #8d69c4;
$custom-dark: #000000;
JSON
{
  "hex": "#542ca9",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 169
  },
  "hsl": {
    "h": 259.2,
    "s": 58.685,
    "l": 41.765
  },
  "oklch": {
    "l": 0.42418,
    "c": 0.18567,
    "h": 290.9
  },
  "luminance": 0.06551
}

Semantic roles & 50–950 ramp

primary
#542CA9
secondary
#A8C36E
accent
#E246B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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