#542E9B#542E9B

#542E9B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.5% C 0.167 H 293.8°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#542E9B
RGBrgb(84, 46, 155)
HSLhsl(261, 54%, 39%)
HSVhsv(261, 70%, 61%)
CMYKcmyk(45.8%, 70.3%, 0%, 39.2%)
CIE-LABlab(29.92, 42.33, -53.30)
CIE-LCHlch(29.92, 68.06, 308.45°)
OKLaboklab(41.45% 0.0674 -0.1526)
OKLCHoklch(41.45% 0.167 293.8)
XYZxyz(10.5479, 6.2051, 31.6459)
Luminance0.0621 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E9B #759B2E
analogous
#2E3F9B #542E9B #8B2E9B
triadic
#542E9B #9B542E #2E9B54
tetradic
#542E9B #9B2E3F #759B2E #2E9B8B
square
#542E9B #9B2E3F #759B2E #2E9B8B
split-complementary
#542E9B #9B8B2E #3F9B2E
monochromatic
#21123D #3A206C #542E9B #6F40C6 #926FD4

Accessibility & contrast

On white

9.37
#542E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#542E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E9B
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E9B#FFFFFF#000000##FFFFFF
##542E9B1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#004599
Tritanopia (blue-blind)
#404961
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542e9b;
/* rgb */ color: rgb(84, 46, 155);
/* oklch */ color: oklch(41.5% 0.167 293.8);
Tailwind
colors: {
  custom: {
    50: '#8b6ab9',
    500: '#542e9b',
    950: '#000000',
  },
}
SCSS
$custom: #542e9b;
$custom-light: #8b6ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#542e9b",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 155
  },
  "hsl": {
    "h": 260.917,
    "s": 54.229,
    "l": 39.412
  },
  "oklch": {
    "l": 0.41451,
    "c": 0.16678,
    "h": 293.8
  },
  "luminance": 0.06205
}

Semantic roles & 50–950 ramp

primary
#542E9B
secondary
#9FBC69
accent
#DE4AAA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #542E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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