#542DA2#542DA2

#542DA2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.9% C 0.176 H 292.3°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#542DA2
RGBrgb(84, 45, 162)
HSLhsl(260, 57%, 41%)
HSVhsv(260, 72%, 64%)
CMYKcmyk(48.1%, 72.2%, 0%, 36.5%)
CIE-LABlab(30.33, 44.82, -56.89)
CIE-LCHlch(30.33, 72.43, 308.23°)
OKLaboklab(41.92% 0.067 -0.1631)
OKLCHoklch(41.92% 0.176 292.3)
XYZxyz(11.1143, 6.3698, 34.8193)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DA2 #7BA22D
analogous
#2D40A2 #542DA2 #8E2DA2
triadic
#542DA2 #A2542D #2DA254
tetradic
#542DA2 #A22D40 #7BA22D #2DA28E
square
#542DA2 #A22D40 #7BA22D #2DA28E
split-complementary
#542DA2 #A28E2D #40A22D
monochromatic
#221242 #3B2072 #542DA2 #6F42CA #9472D8

Accessibility & contrast

On white

9.23
#542DA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#542DA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DA2
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DA2#FFFFFF#000000##FFFFFF
##542DA21.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A5
Deuteranopia (green-blind)
#0045A0
Tritanopia (blue-blind)
#3C4B64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542da2;
/* rgb */ color: rgb(84, 45, 162);
/* oklch */ color: oklch(41.9% 0.176 292.3);
Tailwind
colors: {
  custom: {
    50: '#8c69be',
    500: '#542da2',
    950: '#000000',
  },
}
SCSS
$custom: #542da2;
$custom-light: #8c69be;
$custom-dark: #000000;
JSON
{
  "hex": "#542da2",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 162
  },
  "hsl": {
    "h": 260,
    "s": 56.522,
    "l": 40.588
  },
  "oklch": {
    "l": 0.41922,
    "c": 0.17634,
    "h": 292.3
  },
  "luminance": 0.0637
}

Semantic roles & 50–950 ramp

primary
#542DA2
secondary
#A3BF6C
accent
#E048AD
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542DA2

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

Preview Lab → · Contrast checker → · Palette generator →

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