#542EB9#542EB9

#542EB9 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.1% C 0.202 H 287.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#542EB9
RGBrgb(84, 46, 185)
HSLhsl(256, 60%, 45%)
HSVhsv(256, 75%, 73%)
CMYKcmyk(54.6%, 75.1%, 0%, 27.5%)
CIE-LABlab(32.57, 50.79, -66.98)
CIE-LCHlch(32.57, 84.06, 307.17°)
OKLaboklab(44.14% 0.0607 -0.1927)
OKLCHoklch(44.14% 0.202 287.5)
XYZxyz(13.3875, 7.3409, 46.6010)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EB9 #93B92E
analogous
#2E4DB9 #542EB9 #992EB9
triadic
#542EB9 #B9542E #2EB954
tetradic
#542EB9 #B92E4D #93B92E #2EB999
square
#542EB9 #B92E4D #93B92E #2EB999
split-complementary
#542EB9 #B9992E #4DB92E
monochromatic
#271657 #3E2288 #542EB9 #7451D4 #9B82E0

Accessibility & contrast

On white

8.51
#542EB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#542EB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EB9
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EB9#FFFFFF#000000##FFFFFF
##542EB91.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050BD
Deuteranopia (green-blind)
#0049B6
Tritanopia (blue-blind)
#295572
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542eb9;
/* rgb */ color: rgb(84, 46, 185);
/* oklch */ color: oklch(44.1% 0.202 287.5);
Tailwind
colors: {
  custom: {
    50: '#8f6bcf',
    500: '#542eb9',
    950: '#000000',
  },
}
SCSS
$custom: #542eb9;
$custom-light: #8f6bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#542eb9",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 185
  },
  "hsl": {
    "h": 256.403,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.44139,
    "c": 0.20203,
    "h": 287.5
  },
  "luminance": 0.07342
}

Semantic roles & 50–950 ramp

primary
#542EB9
secondary
#B3C97A
accent
#E344B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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