#542EAE#542EAE

#542EAE is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.1% C 0.189 H 289.6°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#542EAE
RGBrgb(84, 46, 174)
HSLhsl(258, 58%, 43%)
HSVhsv(258, 74%, 68%)
CMYKcmyk(51.7%, 73.6%, 0%, 31.8%)
CIE-LABlab(31.57, 47.68, -62.09)
CIE-LCHlch(31.57, 78.28, 307.53°)
OKLaboklab(43.12% 0.0634 -0.1783)
OKLCHoklch(43.12% 0.189 289.6)
XYZxyz(12.2709, 6.8943, 40.7203)
Luminance0.0689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EAE #88AE2E
analogous
#2E48AE #542EAE #942EAE
triadic
#542EAE #AE542E #2EAE54
tetradic
#542EAE #AE2E48 #88AE2E #2EAE94
square
#542EAE #AE2E48 #88AE2E #2EAE94
split-complementary
#542EAE #AE942E #48AE2E
monochromatic
#25144D #3D217E #542EAE #724ACF #977ADC

Accessibility & contrast

On white

8.83
#542EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#542EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EAE
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EAE#FFFFFF#000000##FFFFFF
##542EAE1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0047AC
Tritanopia (blue-blind)
#33506B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542eae;
/* rgb */ color: rgb(84, 46, 174);
/* oklch */ color: oklch(43.1% 0.189 289.6);
Tailwind
colors: {
  custom: {
    50: '#8d6bc7',
    500: '#542eae',
    950: '#000000',
  },
}
SCSS
$custom: #542eae;
$custom-light: #8d6bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#542eae",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 174
  },
  "hsl": {
    "h": 257.813,
    "s": 58.182,
    "l": 43.137
  },
  "oklch": {
    "l": 0.43124,
    "c": 0.18929,
    "h": 289.6
  },
  "luminance": 0.06895
}

Semantic roles & 50–950 ramp

primary
#542EAE
secondary
#ACC474
accent
#E146B3
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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