#542EB4#542EB4

#542EB4 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.7% C 0.196 H 288.4°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#542EB4
RGBrgb(84, 46, 180)
HSLhsl(257, 59%, 44%)
HSVhsv(257, 74%, 71%)
CMYKcmyk(53.3%, 74.4%, 0%, 29.4%)
CIE-LABlab(32.11, 49.38, -64.77)
CIE-LCHlch(32.11, 81.45, 307.32°)
OKLaboklab(43.67% 0.062 -0.1862)
OKLCHoklch(43.67% 0.196 288.4)
XYZxyz(12.8690, 7.1335, 43.8700)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EB4 #8EB42E
analogous
#2E4BB4 #542EB4 #972EB4
triadic
#542EB4 #B4542E #2EB454
tetradic
#542EB4 #B42E4B #8EB42E #2EB497
square
#542EB4 #B42E4B #8EB42E #2EB497
split-complementary
#542EB4 #B4972E #4BB42E
monochromatic
#271553 #3D2283 #542EB4 #734ED2 #997EDE

Accessibility & contrast

On white

8.65
#542EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#542EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EB4
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EB4#FFFFFF#000000##FFFFFF
##542EB41.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB8
Deuteranopia (green-blind)
#0048B1
Tritanopia (blue-blind)
#2E536F
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542eb4;
/* rgb */ color: rgb(84, 46, 180);
/* oklch */ color: oklch(43.7% 0.196 288.4);
Tailwind
colors: {
  custom: {
    50: '#8e6bcc',
    500: '#542eb4',
    950: '#000000',
  },
}
SCSS
$custom: #542eb4;
$custom-light: #8e6bcc;
$custom-dark: #000000;
JSON
{
  "hex": "#542eb4",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 257.015,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.43674,
    "c": 0.19626,
    "h": 288.4
  },
  "luminance": 0.07134
}

Semantic roles & 50–950 ramp

primary
#542EB4
secondary
#B0C777
accent
#E245B6
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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