#542AAA#542AAA

#542AAA is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.3% C 0.189 H 291.0°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#542AAA
RGBrgb(84, 42, 170)
HSLhsl(260, 60%, 42%)
HSVhsv(260, 75%, 67%)
CMYKcmyk(50.6%, 75.3%, 0%, 33.3%)
CIE-LABlab(30.50, 48.55, -61.43)
CIE-LCHlch(30.50, 78.30, 308.32°)
OKLaboklab(42.26% 0.0678 -0.1764)
OKLCHoklch(42.26% 0.189 291)
XYZxyz(11.7378, 6.4426, 38.6475)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AAA #80AA2A
analogous
#2A40AA #542AAA #942AAA
triadic
#542AAA #AA542A #2AAA54
tetradic
#542AAA #AA2A40 #80AA2A #2AAA94
square
#542AAA #AA2A40 #80AA2A #2AAA94
split-complementary
#542AAA #AA942A #40AA2A
monochromatic
#241248 #3C1E79 #542AAA #7041D0 #9572DC

Accessibility & contrast

On white

9.18
#542AAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#542AAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AAA
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AAA#FFFFFF#000000##FFFFFF
##542AAA1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AAE
Deuteranopia (green-blind)
#0045A8
Tritanopia (blue-blind)
#374D68
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542aaa;
/* rgb */ color: rgb(84, 42, 170);
/* oklch */ color: oklch(42.3% 0.189 291.0);
Tailwind
colors: {
  custom: {
    50: '#8d68c4',
    500: '#542aaa',
    950: '#000000',
  },
}
SCSS
$custom: #542aaa;
$custom-light: #8d68c4;
$custom-dark: #000000;
JSON
{
  "hex": "#542aaa",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 170
  },
  "hsl": {
    "h": 259.688,
    "s": 60.377,
    "l": 41.569
  },
  "oklch": {
    "l": 0.42264,
    "c": 0.18898,
    "h": 291
  },
  "luminance": 0.06443
}

Semantic roles & 50–950 ramp

primary
#542AAA
secondary
#A7C36C
accent
#E444AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0613
muted
#7E7A82

Preview Lab

Preview with #542AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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