#542BAC#542BAC

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

Color values

HEX#542BAC
RGBrgb(84, 43, 172)
HSLhsl(259, 60%, 42%)
HSVhsv(259, 75%, 67%)
CMYKcmyk(51.2%, 75%, 0%, 32.5%)
CIE-LABlab(30.86, 48.62, -62.05)
CIE-LCHlch(30.86, 78.83, 308.08°)
OKLaboklab(42.57% 0.0664 -0.1782)
OKLCHoklch(42.57% 0.19 290.4)
XYZxyz(11.9643, 6.5906, 39.6634)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BAC #83AC2B
analogous
#2B42AC #542BAC #952BAC
triadic
#542BAC #AC542B #2BAC54
tetradic
#542BAC #AC2B42 #83AC2B #2BAC95
square
#542BAC #AC2B42 #83AC2B #2BAC95
split-complementary
#542BAC #AC952B #42AC2B
monochromatic
#24134A #3C1F7B #542BAC #7144D0 #9675DC

Accessibility & contrast

On white

9.06
#542BAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#542BAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BAC
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BAC#FFFFFF#000000##FFFFFF
##542BAC1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB0
Deuteranopia (green-blind)
#0046AA
Tritanopia (blue-blind)
#354E69
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542bac;
/* rgb */ color: rgb(84, 43, 172);
/* oklch */ color: oklch(42.6% 0.190 290.4);
Tailwind
colors: {
  custom: {
    50: '#8d69c6',
    500: '#542bac',
    950: '#000000',
  },
}
SCSS
$custom: #542bac;
$custom-light: #8d69c6;
$custom-dark: #000000;
JSON
{
  "hex": "#542bac",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 172
  },
  "hsl": {
    "h": 259.07,
    "s": 60,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42568,
    "c": 0.19021,
    "h": 290.4
  },
  "luminance": 0.06591
}

Semantic roles & 50–950 ramp

primary
#542BAC
secondary
#A9C46F
accent
#E345B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542BAC

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

Preview Lab → · Contrast checker → · Palette generator →

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