#542EB7#542EB7

#542EB7 is a dark, vivid violet. Relative luminance 0.073; OKLCH L 44.0% C 0.200 H 287.9°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#542EB7
RGBrgb(84, 46, 183)
HSLhsl(257, 60%, 45%)
HSVhsv(257, 75%, 72%)
CMYKcmyk(54.1%, 74.9%, 0%, 28.2%)
CIE-LABlab(32.38, 50.23, -66.10)
CIE-LCHlch(32.38, 83.02, 307.23°)
OKLaboklab(43.95% 0.0612 -0.1901)
OKLCHoklch(43.95% 0.2 287.9)
XYZxyz(13.1779, 7.2570, 45.4969)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EB7 #91B72E
analogous
#2E4DB7 #542EB7 #982EB7
triadic
#542EB7 #B7542E #2EB754
tetradic
#542EB7 #B72E4D #91B72E #2EB798
square
#542EB7 #B72E4D #91B72E #2EB798
split-complementary
#542EB7 #B7982E #4DB72E
monochromatic
#271555 #3E2286 #542EB7 #744FD3 #9B80DF

Accessibility & contrast

On white

8.57
#542EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#542EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EB7
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EB7#FFFFFF#000000##FFFFFF
##542EB71.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBB
Deuteranopia (green-blind)
#0048B4
Tritanopia (blue-blind)
#2B5470
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542eb7;
/* rgb */ color: rgb(84, 46, 183);
/* oklch */ color: oklch(44.0% 0.200 287.9);
Tailwind
colors: {
  custom: {
    50: '#8f6bce',
    500: '#542eb7',
    950: '#000000',
  },
}
SCSS
$custom: #542eb7;
$custom-light: #8f6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#542eb7",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 183
  },
  "hsl": {
    "h": 256.642,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43952,
    "c": 0.19973,
    "h": 287.9
  },
  "luminance": 0.07258
}

Semantic roles & 50–950 ramp

primary
#542EB7
secondary
#B2C879
accent
#E345B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0714
muted
#7E7A82

Preview Lab

Preview with #542EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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