#542CA6#542CA6

#542CA6 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.182 H 291.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#542CA6
RGBrgb(84, 44, 166)
HSLhsl(260, 58%, 41%)
HSVhsv(260, 73%, 65%)
CMYKcmyk(49.4%, 73.5%, 0%, 34.9%)
CIE-LABlab(30.49, 46.45, -59.04)
CIE-LCHlch(30.49, 75.12, 308.19°)
OKLaboklab(42.15% 0.067 -0.1694)
OKLCHoklch(42.15% 0.182 291.6)
XYZxyz(11.4378, 6.4389, 36.7092)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CA6 #7EA62C
analogous
#2C41A6 #542CA6 #912CA6
triadic
#542CA6 #A6542C #2CA654
tetradic
#542CA6 #A62C41 #7EA62C #2CA691
square
#542CA6 #A62C41 #7EA62C #2CA691
split-complementary
#542CA6 #A6912C #41A62C
monochromatic
#231245 #3C1F76 #542CA6 #7042CD #9473DA

Accessibility & contrast

On white

9.18
#542CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#542CA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CA6
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CA6#FFFFFF#000000##FFFFFF
##542CA61.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAA
Deuteranopia (green-blind)
#0045A4
Tritanopia (blue-blind)
#394C66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542ca6;
/* rgb */ color: rgb(84, 44, 166);
/* oklch */ color: oklch(42.1% 0.182 291.6);
Tailwind
colors: {
  custom: {
    50: '#8c69c1',
    500: '#542ca6',
    950: '#000000',
  },
}
SCSS
$custom: #542ca6;
$custom-light: #8c69c1;
$custom-dark: #000000;
JSON
{
  "hex": "#542ca6",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 166
  },
  "hsl": {
    "h": 259.672,
    "s": 58.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.42148,
    "c": 0.18218,
    "h": 291.6
  },
  "luminance": 0.06439
}

Semantic roles & 50–950 ramp

primary
#542CA6
secondary
#A5C16D
accent
#E146AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542CA6

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

Preview Lab → · Contrast checker → · Palette generator →

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