#542EB3#542EB3

#542EB3 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.6% C 0.195 H 288.6°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#542EB3
RGBrgb(84, 46, 179)
HSLhsl(257, 59%, 44%)
HSVhsv(257, 74%, 70%)
CMYKcmyk(53.1%, 74.3%, 0%, 29.8%)
CIE-LABlab(32.02, 49.10, -64.33)
CIE-LCHlch(32.02, 80.92, 307.35°)
OKLaboklab(43.58% 0.0622 -0.1849)
OKLCHoklch(43.58% 0.195 288.6)
XYZxyz(12.7675, 7.0929, 43.3354)
Luminance0.0709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EB3 #8DB32E
analogous
#2E4BB3 #542EB3 #972EB3
triadic
#542EB3 #B3542E #2EB354
tetradic
#542EB3 #B32E4B #8DB32E #2EB397
square
#542EB3 #B32E4B #8DB32E #2EB397
split-complementary
#542EB3 #B3972E #4BB32E
monochromatic
#261552 #3D2182 #542EB3 #734DD1 #997EDE

Accessibility & contrast

On white

8.68
#542EB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#542EB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EB3
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EB3#FFFFFF#000000##FFFFFF
##542EB31.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB7
Deuteranopia (green-blind)
#0048B0
Tritanopia (blue-blind)
#2F526E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542eb3;
/* rgb */ color: rgb(84, 46, 179);
/* oklch */ color: oklch(43.6% 0.195 288.6);
Tailwind
colors: {
  custom: {
    50: '#8e6bcb',
    500: '#542eb3',
    950: '#000000',
  },
}
SCSS
$custom: #542eb3;
$custom-light: #8e6bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#542eb3",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 179
  },
  "hsl": {
    "h": 257.143,
    "s": 59.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43581,
    "c": 0.19511,
    "h": 288.6
  },
  "luminance": 0.07093
}

Semantic roles & 50–950 ramp

primary
#542EB3
secondary
#B0C676
accent
#E246B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542EB3

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

Preview Lab → · Contrast checker → · Palette generator →

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