#542EA8#542EA8

#542EA8 is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.6% C 0.182 H 290.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#542EA8
RGBrgb(84, 46, 168)
HSLhsl(259, 57%, 42%)
HSVhsv(259, 73%, 66%)
CMYKcmyk(50%, 72.6%, 0%, 34.1%)
CIE-LABlab(31.03, 45.99, -59.36)
CIE-LCHlch(31.03, 75.09, 307.77°)
OKLaboklab(42.58% 0.0648 -0.1704)
OKLCHoklch(42.58% 0.182 290.8)
XYZxyz(11.6990, 6.6655, 37.7083)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EA8 #82A82E
analogous
#2E45A8 #542EA8 #912EA8
triadic
#542EA8 #A8542E #2EA854
tetradic
#542EA8 #A82E45 #82A82E #2EA891
square
#542EA8 #A82E45 #82A82E #2EA891
split-complementary
#542EA8 #A8912E #45A82E
monochromatic
#241448 #3C2178 #542EA8 #7047CD #9677DA

Accessibility & contrast

On white

9.00
#542EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#542EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EA8
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EA8#FFFFFF#000000##FFFFFF
##542EA81.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BAC
Deuteranopia (green-blind)
#0046A6
Tritanopia (blue-blind)
#384E68
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #542ea8;
/* rgb */ color: rgb(84, 46, 168);
/* oklch */ color: oklch(42.6% 0.182 290.8);
Tailwind
colors: {
  custom: {
    50: '#8c6ac3',
    500: '#542ea8',
    950: '#000000',
  },
}
SCSS
$custom: #542ea8;
$custom-light: #8c6ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#542ea8",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 258.689,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42584,
    "c": 0.18226,
    "h": 290.8
  },
  "luminance": 0.06666
}

Semantic roles & 50–950 ramp

primary
#542EA8
secondary
#A8C270
accent
#E048B1
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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