#542EA2#542EA2

#542EA2 is a dark, vivid violet. Relative luminance 0.064; OKLCH L 42.1% C 0.175 H 292.2°. Best body text is #FFFFFF at 9.17:1 contrast (WCAG AA passes).

Color values

HEX#542EA2
RGBrgb(84, 46, 162)
HSLhsl(260, 56%, 41%)
HSVhsv(260, 72%, 64%)
CMYKcmyk(48.1%, 71.6%, 0%, 36.5%)
CIE-LABlab(30.51, 44.30, -56.59)
CIE-LCHlch(30.51, 71.86, 308.05°)
OKLaboklab(42.05% 0.066 -0.1622)
OKLCHoklch(42.05% 0.175 292.2)
XYZxyz(11.1529, 6.4471, 34.8322)
Luminance0.0645 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EA2 #7CA22E
analogous
#2E42A2 #542EA2 #8E2EA2
triadic
#542EA2 #A2542E #2EA254
tetradic
#542EA2 #A22E42 #7CA22E #2EA28E
square
#542EA2 #A22E42 #7CA22E #2EA28E
split-complementary
#542EA2 #A28E2E #42A22E
monochromatic
#231343 #3B2072 #542EA2 #6F43CA #9473D7

Accessibility & contrast

On white

9.17
#542EA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542EA2
9.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EA2#FFFFFF#000000##FFFFFF
##542EA21.009.172.299.17
#FFFFFF9.171.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.171.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542ea2;
/* rgb */ color: rgb(84, 46, 162);
/* oklch */ color: oklch(42.1% 0.175 292.2);
Tailwind
colors: {
  custom: {
    50: '#8c6abe',
    500: '#542ea2',
    950: '#000000',
  },
}
SCSS
$custom: #542ea2;
$custom-light: #8c6abe;
$custom-dark: #000000;
JSON
{
  "hex": "#542ea2",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 162
  },
  "hsl": {
    "h": 259.655,
    "s": 55.769,
    "l": 40.784
  },
  "oklch": {
    "l": 0.42054,
    "c": 0.17516,
    "h": 292.2
  },
  "luminance": 0.06447
}

Semantic roles & 50–950 ramp

primary
#542EA2
secondary
#A4BF6D
accent
#DF49AE
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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