#542EA6#542EA6

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

Color values

HEX#542EA6
RGBrgb(84, 46, 166)
HSLhsl(259, 57%, 42%)
HSVhsv(259, 72%, 65%)
CMYKcmyk(49.4%, 72.3%, 0%, 34.9%)
CIE-LABlab(30.86, 45.43, -58.44)
CIE-LCHlch(30.86, 74.02, 307.86°)
OKLaboklab(42.41% 0.0652 -0.1677)
OKLCHoklch(42.41% 0.18 291.3)
XYZxyz(11.5141, 6.5915, 36.7346)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EA6 #80A62E
analogous
#2E44A6 #542EA6 #902EA6
triadic
#542EA6 #A6542E #2EA654
tetradic
#542EA6 #A62E44 #80A62E #2EA690
square
#542EA6 #A62E44 #80A62E #2EA690
split-complementary
#542EA6 #A6902E #44A62E
monochromatic
#241346 #3C2176 #542EA6 #7046CC #9576D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542EA6#FFFFFF#000000##FFFFFF
##542EA61.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)
#004BAA
Deuteranopia (green-blind)
#0046A4
Tritanopia (blue-blind)
#394D67
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542ea6;
/* rgb */ color: rgb(84, 46, 166);
/* oklch */ color: oklch(42.4% 0.180 291.3);
Tailwind
colors: {
  custom: {
    50: '#8c6ac1',
    500: '#542ea6',
    950: '#000000',
  },
}
SCSS
$custom: #542ea6;
$custom-light: #8c6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#542ea6",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 259,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42406,
    "c": 0.1799,
    "h": 291.3
  },
  "luminance": 0.06592
}

Semantic roles & 50–950 ramp

primary
#542EA6
secondary
#A7C16F
accent
#E048B0
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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