#542BAE#542BAE

#542BAE is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.8% C 0.193 H 290.0°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#542BAE
RGBrgb(84, 43, 174)
HSLhsl(259, 60%, 43%)
HSVhsv(259, 75%, 68%)
CMYKcmyk(51.7%, 75.3%, 0%, 31.8%)
CIE-LABlab(31.04, 49.17, -62.95)
CIE-LCHlch(31.04, 79.88, 308.00°)
OKLaboklab(42.75% 0.0659 -0.1809)
OKLCHoklch(42.75% 0.193 290)
XYZxyz(12.1578, 6.6680, 40.6826)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BAE #85AE2B
analogous
#2B43AE #542BAE #962BAE
triadic
#542BAE #AE542B #2BAE54
tetradic
#542BAE #AE2B43 #85AE2B #2BAE96
square
#542BAE #AE2B43 #85AE2B #2BAE96
split-complementary
#542BAE #AE962B #43AE2B
monochromatic
#25134C #3C1F7D #542BAE #7145D1 #9676DD

Accessibility & contrast

On white

9.00
#542BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542BAE
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BAE#FFFFFF#000000##FFFFFF
##542BAE1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB2
Deuteranopia (green-blind)
#0046AC
Tritanopia (blue-blind)
#344F6B
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542bae;
/* rgb */ color: rgb(84, 43, 174);
/* oklch */ color: oklch(42.8% 0.193 290.0);
Tailwind
colors: {
  custom: {
    50: '#8d69c7',
    500: '#542bae',
    950: '#000000',
  },
}
SCSS
$custom: #542bae;
$custom-light: #8d69c7;
$custom-dark: #000000;
JSON
{
  "hex": "#542bae",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 174
  },
  "hsl": {
    "h": 258.779,
    "s": 60.369,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42753,
    "c": 0.1925,
    "h": 290
  },
  "luminance": 0.06669
}

Semantic roles & 50–950 ramp

primary
#542BAE
secondary
#AAC570
accent
#E444B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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