#542FAA#542FAA

#542FAA is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.9% C 0.183 H 290.2°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#542FAA
RGBrgb(84, 47, 170)
HSLhsl(258, 57%, 43%)
HSVhsv(258, 72%, 67%)
CMYKcmyk(50.6%, 72.4%, 0%, 33.3%)
CIE-LABlab(31.39, 46.04, -59.97)
CIE-LCHlch(31.39, 75.61, 307.51°)
OKLaboklab(42.89% 0.0635 -0.1722)
OKLCHoklch(42.89% 0.183 290.2)
XYZxyz(11.9263, 6.8196, 38.7103)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FAA #85AA2F
analogous
#2F47AA #542FAA #922FAA
triadic
#542FAA #AA542F #2FAA54
tetradic
#542FAA #AA2F47 #85AA2F #2FAA92
square
#542FAA #AA2F47 #85AA2F #2FAA92
split-complementary
#542FAA #AA922F #47AA2F
monochromatic
#25144A #3C227A #542FAA #7149CD #9679DA

Accessibility & contrast

On white

8.88
#542FAA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#542FAA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FAA
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FAA#FFFFFF#000000##FFFFFF
##542FAA1.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CAE
Deuteranopia (green-blind)
#0047A8
Tritanopia (blue-blind)
#364F69
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542faa;
/* rgb */ color: rgb(84, 47, 170);
/* oklch */ color: oklch(42.9% 0.183 290.2);
Tailwind
colors: {
  custom: {
    50: '#8d6bc4',
    500: '#542faa',
    950: '#000000',
  },
}
SCSS
$custom: #542faa;
$custom-light: #8d6bc4;
$custom-dark: #000000;
JSON
{
  "hex": "#542faa",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 170
  },
  "hsl": {
    "h": 258.049,
    "s": 56.682,
    "l": 42.549
  },
  "oklch": {
    "l": 0.42893,
    "c": 0.18348,
    "h": 290.2
  },
  "luminance": 0.0682
}

Semantic roles & 50–950 ramp

primary
#542FAA
secondary
#AAC272
accent
#E048B2
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542FAA

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

Preview Lab → · Contrast checker → · Palette generator →

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