#542AC3#542AC3

#542AC3 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.6% C 0.217 H 286.2°. Best body text is #FFFFFF at 8.41:1 contrast (WCAG AA passes).

Color values

HEX#542AC3
RGBrgb(84, 42, 195)
HSLhsl(256, 65%, 46%)
HSVhsv(256, 78%, 76%)
CMYKcmyk(56.9%, 78.5%, 0%, 23.5%)
CIE-LABlab(32.88, 55.46, -72.37)
CIE-LCHlch(32.88, 91.17, 307.46°)
OKLaboklab(44.64% 0.0607 -0.2084)
OKLCHoklch(44.64% 0.217 286.2)
XYZxyz(14.3315, 7.4800, 52.3078)
Luminance0.0748 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542AC3 #99C32A
analogous
#2A4CC3 #542AC3 #A12AC3
triadic
#542AC3 #C3542A #2AC354
tetradic
#542AC3 #C32A4C #99C32A #2AC3A1
square
#542AC3 #C32A4C #99C32A #2AC3A1
split-complementary
#542AC3 #C3A12A #4CC32A
monochromatic
#29145E #3E1F91 #542AC3 #7651D9 #9E83E4

Accessibility & contrast

On white

8.41
#542AC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#542AC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542AC3
8.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542AC3#FFFFFF#000000##FFFFFF
##542AC31.008.412.508.41
#FFFFFF8.411.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#1D5776
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542ac3;
/* rgb */ color: rgb(84, 42, 195);
/* oklch */ color: oklch(44.6% 0.217 286.2);
Tailwind
colors: {
  custom: {
    50: '#9169d6',
    500: '#542ac3',
    950: '#000000',
  },
}
SCSS
$custom: #542ac3;
$custom-light: #9169d6;
$custom-dark: #000000;
JSON
{
  "hex": "#542ac3",
  "rgb": {
    "r": 84,
    "g": 42,
    "b": 195
  },
  "hsl": {
    "h": 256.471,
    "s": 64.557,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44642,
    "c": 0.21708,
    "h": 286.2
  },
  "luminance": 0.07481
}

Semantic roles & 50–950 ramp

primary
#542AC3
secondary
#B7CD7B
accent
#E840BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542AC3

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

Preview Lab → · Contrast checker → · Palette generator →

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