#542CAB#542CAB

#542CAB is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.6% C 0.188 H 290.5°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#542CAB
RGBrgb(84, 44, 171)
HSLhsl(259, 59%, 42%)
HSVhsv(259, 74%, 67%)
CMYKcmyk(50.9%, 74.3%, 0%, 32.9%)
CIE-LABlab(30.94, 47.84, -61.31)
CIE-LCHlch(30.94, 77.77, 307.97°)
OKLaboklab(42.6% 0.0658 -0.1761)
OKLCHoklch(42.6% 0.188 290.5)
XYZxyz(11.9054, 6.6260, 39.1718)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CAB #83AB2C
analogous
#2C43AB #542CAB #942CAB
triadic
#542CAB #AB542C #2CAB54
tetradic
#542CAB #AB2C43 #83AB2C #2CAB94
square
#542CAB #AB2C43 #83AB2C #2CAB94
split-complementary
#542CAB #AB942C #43AB2C
monochromatic
#24134A #3C1F7A #542CAB #7145CF #9676DC

Accessibility & contrast

On white

9.03
#542CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#542CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CAB
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CAB#FFFFFF#000000##FFFFFF
##542CAB1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#364E69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542cab;
/* rgb */ color: rgb(84, 44, 171);
/* oklch */ color: oklch(42.6% 0.188 290.5);
Tailwind
colors: {
  custom: {
    50: '#8d69c5',
    500: '#542cab',
    950: '#000000',
  },
}
SCSS
$custom: #542cab;
$custom-light: #8d69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#542cab",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 258.898,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.426,
    "c": 0.18799,
    "h": 290.5
  },
  "luminance": 0.06626
}

Semantic roles & 50–950 ramp

primary
#542CAB
secondary
#A9C36F
accent
#E246B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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