#542EB8#542EB8

#542EB8 is a dark, highly saturated violet. Relative luminance 0.073; OKLCH L 44.0% C 0.201 H 287.7°. Best body text is #FFFFFF at 8.54:1 contrast (WCAG AA passes).

Color values

HEX#542EB8
RGBrgb(84, 46, 184)
HSLhsl(257, 60%, 45%)
HSVhsv(257, 75%, 72%)
CMYKcmyk(54.3%, 75%, 0%, 27.8%)
CIE-LABlab(32.48, 50.51, -66.54)
CIE-LCHlch(32.48, 83.54, 307.20°)
OKLaboklab(44.05% 0.061 -0.1914)
OKLCHoklch(44.05% 0.201 287.7)
XYZxyz(13.2823, 7.2988, 46.0470)
Luminance0.0730 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EB8 #92B82E
analogous
#2E4DB8 #542EB8 #992EB8
triadic
#542EB8 #B8542E #2EB854
tetradic
#542EB8 #B82E4D #92B82E #2EB899
square
#542EB8 #B82E4D #92B82E #2EB899
split-complementary
#542EB8 #B8992E #4DB82E
monochromatic
#271656 #3E2287 #542EB8 #7450D3 #9B81DF

Accessibility & contrast

On white

8.54
#542EB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#542EB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EB8
8.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EB8#FFFFFF#000000##FFFFFF
##542EB81.008.542.468.54
#FFFFFF8.541.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBC
Deuteranopia (green-blind)
#0049B5
Tritanopia (blue-blind)
#2A5471
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542eb8;
/* rgb */ color: rgb(84, 46, 184);
/* oklch */ color: oklch(44.0% 0.201 287.7);
Tailwind
colors: {
  custom: {
    50: '#8f6bce',
    500: '#542eb8',
    950: '#000000',
  },
}
SCSS
$custom: #542eb8;
$custom-light: #8f6bce;
$custom-dark: #000000;
JSON
{
  "hex": "#542eb8",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 184
  },
  "hsl": {
    "h": 256.522,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.44046,
    "c": 0.20088,
    "h": 287.7
  },
  "luminance": 0.07299
}

Semantic roles & 50–950 ramp

primary
#542EB8
secondary
#B3C879
accent
#E345B8
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542EB8

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

Preview Lab → · Contrast checker → · Palette generator →

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