#542FAE#542FAE

#542FAE is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.3% C 0.188 H 289.4°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#542FAE
RGBrgb(84, 47, 174)
HSLhsl(257, 57%, 43%)
HSVhsv(257, 73%, 68%)
CMYKcmyk(51.7%, 73%, 0%, 31.8%)
CIE-LABlab(31.75, 47.18, -61.79)
CIE-LCHlch(31.75, 77.74, 307.36°)
OKLaboklab(43.25% 0.0626 -0.1775)
OKLCHoklch(43.25% 0.188 289.4)
XYZxyz(12.3104, 6.9733, 40.7335)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FAE #89AE2F
analogous
#2F4AAE #542FAE #932FAE
triadic
#542FAE #AE542F #2FAE54
tetradic
#542FAE #AE2F4A #89AE2F #2FAE93
square
#542FAE #AE2F4A #89AE2F #2FAE93
split-complementary
#542FAE #AE932F #4AAE2F
monochromatic
#25154E #3D227E #542FAE #724CCF #987CDC

Accessibility & contrast

On white

8.77
#542FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#542FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FAE
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FAE#FFFFFF#000000##FFFFFF
##542FAE1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB2
Deuteranopia (green-blind)
#0048AC
Tritanopia (blue-blind)
#33516C
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542fae;
/* rgb */ color: rgb(84, 47, 174);
/* oklch */ color: oklch(43.3% 0.188 289.4);
Tailwind
colors: {
  custom: {
    50: '#8d6bc7',
    500: '#542fae',
    950: '#000000',
  },
}
SCSS
$custom: #542fae;
$custom-light: #8d6bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#542fae",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 174
  },
  "hsl": {
    "h": 257.48,
    "s": 57.466,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43252,
    "c": 0.1882,
    "h": 289.4
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#542FAE
secondary
#ADC475
accent
#E147B4
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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