#542E98#542E98

#542E98 is a dark, vivid violet. Relative luminance 0.061; OKLCH L 41.2% C 0.163 H 294.6°. Best body text is #FFFFFF at 9.45:1 contrast (WCAG AA passes).

Color values

HEX#542E98
RGBrgb(84, 46, 152)
HSLhsl(262, 54%, 39%)
HSVhsv(262, 70%, 60%)
CMYKcmyk(44.7%, 69.7%, 0%, 40.4%)
CIE-LABlab(29.68, 41.49, -51.87)
CIE-LCHlch(29.68, 66.42, 308.65°)
OKLaboklab(41.2% 0.0679 -0.1484)
OKLCHoklch(41.2% 0.163 294.6)
XYZxyz(10.2991, 6.1055, 30.3355)
Luminance0.0611 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E98 #72982E
analogous
#2E3D98 #542E98 #892E98
triadic
#542E98 #98542E #2E9854
tetradic
#542E98 #982E3D #72982E #2E9889
square
#542E98 #982E3D #72982E #2E9889
split-complementary
#542E98 #98892E #3D982E
monochromatic
#20123A #3A2069 #542E98 #6F3EC5 #926DD3

Accessibility & contrast

On white

9.45
#542E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#542E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E98
9.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E98#FFFFFF#000000##FFFFFF
##542E981.009.452.229.45
#FFFFFF9.451.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#004496
Tritanopia (blue-blind)
#41485F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542e98;
/* rgb */ color: rgb(84, 46, 152);
/* oklch */ color: oklch(41.2% 0.163 294.6);
Tailwind
colors: {
  custom: {
    50: '#8a6ab7',
    500: '#542e98',
    950: '#000000',
  },
}
SCSS
$custom: #542e98;
$custom-light: #8a6ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#542e98",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 152
  },
  "hsl": {
    "h": 261.509,
    "s": 53.535,
    "l": 38.824
  },
  "oklch": {
    "l": 0.41198,
    "c": 0.16316,
    "h": 294.6
  },
  "luminance": 0.06106
}

Semantic roles & 50–950 ramp

primary
#542E98
secondary
#9DBA68
accent
#DD4BA9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542E98

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

Preview Lab → · Contrast checker → · Palette generator →

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