#542BAB#542BAB

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

Color values

HEX#542BAB
RGBrgb(84, 43, 171)
HSLhsl(259, 60%, 42%)
HSVhsv(259, 75%, 67%)
CMYKcmyk(50.9%, 74.9%, 0%, 32.9%)
CIE-LABlab(30.77, 48.34, -61.60)
CIE-LCHlch(30.77, 78.30, 308.12°)
OKLaboklab(42.48% 0.0667 -0.1769)
OKLCHoklch(42.48% 0.189 290.7)
XYZxyz(11.8686, 6.5524, 39.1595)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BAB #82AB2B
analogous
#2B42AB #542BAB #942BAB
triadic
#542BAB #AB542B #2BAB54
tetradic
#542BAB #AB2B42 #82AB2B #2BAB94
square
#542BAB #AB2B42 #82AB2B #2BAB94
split-complementary
#542BAB #AB942B #42AB2B
monochromatic
#241249 #3C1F7A #542BAB #7043D0 #9674DC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542BAB#FFFFFF#000000##FFFFFF
##542BAB1.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)
#004BAF
Deuteranopia (green-blind)
#0046A9
Tritanopia (blue-blind)
#364E69
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542bab;
/* rgb */ color: rgb(84, 43, 171);
/* oklch */ color: oklch(42.5% 0.189 290.7);
Tailwind
colors: {
  custom: {
    50: '#8d69c5',
    500: '#542bab',
    950: '#000000',
  },
}
SCSS
$custom: #542bab;
$custom-light: #8d69c5;
$custom-dark: #000000;
JSON
{
  "hex": "#542bab",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 171
  },
  "hsl": {
    "h": 259.219,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42477,
    "c": 0.18906,
    "h": 290.7
  },
  "luminance": 0.06553
}

Semantic roles & 50–950 ramp

primary
#542BAB
secondary
#A8C46E
accent
#E345B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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