#542AA3#542AA3

#542AA3 is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.6% C 0.181 H 292.6°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#542AA3
RGBrgb(84, 42, 163)
HSLhsl(261, 59%, 40%)
HSVhsv(261, 74%, 64%)
CMYKcmyk(48.5%, 74.2%, 0%, 36.1%)
CIE-LABlab(29.87, 46.62, -58.24)
CIE-LCHlch(29.87, 74.60, 308.67°)
OKLaboklab(41.63% 0.0695 -0.167)
OKLCHoklch(41.63% 0.181 292.6)
XYZxyz(11.0931, 6.1847, 35.2525)
Luminance0.0619 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AA3 #79A32A
analogous
#2A3DA3 #542AA3 #902AA3
triadic
#542AA3 #A3542A #2AA354
tetradic
#542AA3 #A32A3D #79A32A #2AA390
square
#542AA3 #A32A3D #79A32A #2AA390
split-complementary
#542AA3 #A3902A #3DA32A
monochromatic
#221142 #3B1D72 #542AA3 #6F3DCD #936EDA

Accessibility & contrast

On white

9.39
#542AA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#542AA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AA3
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AA3#FFFFFF#000000##FFFFFF
##542AA31.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A6
Deuteranopia (green-blind)
#0044A1
Tritanopia (blue-blind)
#3B4A64
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #542aa3;
/* rgb */ color: rgb(84, 42, 163);
/* oklch */ color: oklch(41.6% 0.181 292.6);
Tailwind
colors: {
  custom: {
    50: '#8c68bf',
    500: '#542aa3',
    950: '#000000',
  },
}
SCSS
$custom: #542aa3;
$custom-light: #8c68bf;
$custom-dark: #000000;
JSON
{
  "hex": "#542aa3",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 163
  },
  "hsl": {
    "h": 260.826,
    "s": 59.024,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41628,
    "c": 0.18093,
    "h": 292.6
  },
  "luminance": 0.06185
}

Semantic roles & 50–950 ramp

primary
#542AA3
secondary
#A2C068
accent
#E246AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542AA3

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

Preview Lab → · Contrast checker → · Palette generator →

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