#542EA3#542EA3

#542EA3 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 42.1% C 0.176 H 291.9°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#542EA3
RGBrgb(84, 46, 163)
HSLhsl(259, 56%, 41%)
HSVhsv(259, 72%, 64%)
CMYKcmyk(48.5%, 71.8%, 0%, 36.1%)
CIE-LABlab(30.60, 44.58, -57.05)
CIE-LCHlch(30.60, 72.40, 308.00°)
OKLaboklab(42.14% 0.0658 -0.1636)
OKLCHoklch(42.14% 0.176 291.9)
XYZxyz(11.2422, 6.4828, 35.3022)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EA3 #7DA32E
analogous
#2E42A3 #542EA3 #8E2EA3
triadic
#542EA3 #A3542E #2EA354
tetradic
#542EA3 #A32E42 #7DA32E #2EA38E
square
#542EA3 #A32E42 #7DA32E #2EA38E
split-complementary
#542EA3 #A38E2E #42A32E
monochromatic
#231344 #3B2173 #542EA3 #7044CA #9474D8

Accessibility & contrast

On white

9.14
#542EA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#542EA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EA3
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EA3#FFFFFF#000000##FFFFFF
##542EA31.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA6
Deuteranopia (green-blind)
#0046A1
Tritanopia (blue-blind)
#3B4C65
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542ea3;
/* rgb */ color: rgb(84, 46, 163);
/* oklch */ color: oklch(42.1% 0.176 291.9);
Tailwind
colors: {
  custom: {
    50: '#8c6abf',
    500: '#542ea3',
    950: '#000000',
  },
}
SCSS
$custom: #542ea3;
$custom-light: #8c6abf;
$custom-dark: #000000;
JSON
{
  "hex": "#542ea3",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 163
  },
  "hsl": {
    "h": 259.487,
    "s": 55.981,
    "l": 40.98
  },
  "oklch": {
    "l": 0.42142,
    "c": 0.17634,
    "h": 291.9
  },
  "luminance": 0.06483
}

Semantic roles & 50–950 ramp

primary
#542EA3
secondary
#A5BF6D
accent
#DF49AE
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542EA3

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

Preview Lab → · Contrast checker → · Palette generator →

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