#542B99#542B99

#542B99 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.9% C 0.168 H 294.9°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#542B99
RGBrgb(84, 43, 153)
HSLhsl(262, 56%, 38%)
HSVhsv(262, 72%, 60%)
CMYKcmyk(45.1%, 71.9%, 0%, 40%)
CIE-LABlab(29.19, 43.35, -53.28)
CIE-LCHlch(29.19, 68.69, 309.14°)
OKLaboklab(40.88% 0.0708 -0.1525)
OKLCHoklch(40.88% 0.168 294.9)
XYZxyz(10.2683, 5.9122, 30.7310)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542B99 #70992B
analogous
#2B3999 #542B99 #8B2B99
triadic
#542B99 #99542B #2B9954
tetradic
#542B99 #992B39 #70992B #2B998B
square
#542B99 #992B39 #70992B #2B998B
split-complementary
#542B99 #998B2B #39992B
monochromatic
#201039 #3A1E69 #542B99 #6F3AC8 #9269D5

Accessibility & contrast

On white

9.62
#542B99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#542B99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542B99
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542B99#FFFFFF#000000##FFFFFF
##542B991.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#41475F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #542b99;
/* rgb */ color: rgb(84, 43, 153);
/* oklch */ color: oklch(40.9% 0.168 294.9);
Tailwind
colors: {
  custom: {
    50: '#8b68b8',
    500: '#542b99',
    950: '#000000',
  },
}
SCSS
$custom: #542b99;
$custom-light: #8b68b8;
$custom-dark: #000000;
JSON
{
  "hex": "#542b99",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 153
  },
  "hsl": {
    "h": 262.364,
    "s": 56.122,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40876,
    "c": 0.1681,
    "h": 294.9
  },
  "luminance": 0.05912
}

Semantic roles & 50–950 ramp

primary
#542B99
secondary
#9BBC64
accent
#DF48A7
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542B99

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

Preview Lab → · Contrast checker → · Palette generator →

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