#542EA5#542EA5

#542EA5 is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.3% C 0.179 H 291.5°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#542EA5
RGBrgb(84, 46, 165)
HSLhsl(259, 56%, 41%)
HSVhsv(259, 72%, 65%)
CMYKcmyk(49.1%, 72.1%, 0%, 35.3%)
CIE-LABlab(30.77, 45.14, -57.98)
CIE-LCHlch(30.77, 73.48, 307.90°)
OKLaboklab(42.32% 0.0654 -0.1663)
OKLCHoklch(42.32% 0.179 291.5)
XYZxyz(11.4228, 6.5550, 36.2534)
Luminance0.0655 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EA5 #7FA52E
analogous
#2E44A5 #542EA5 #902EA5
triadic
#542EA5 #A5542E #2EA554
tetradic
#542EA5 #A52E44 #7FA52E #2EA590
square
#542EA5 #A52E44 #7FA52E #2EA590
split-complementary
#542EA5 #A5902E #44A52E
monochromatic
#231345 #3C2175 #542EA5 #7045CB #9575D8

Accessibility & contrast

On white

9.09
#542EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#542EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EA5
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EA5#FFFFFF#000000##FFFFFF
##542EA51.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AA9
Deuteranopia (green-blind)
#0046A3
Tritanopia (blue-blind)
#3A4D66
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #542ea5;
/* rgb */ color: rgb(84, 46, 165);
/* oklch */ color: oklch(42.3% 0.179 291.5);
Tailwind
colors: {
  custom: {
    50: '#8c6ac1',
    500: '#542ea5',
    950: '#000000',
  },
}
SCSS
$custom: #542ea5;
$custom-light: #8c6ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#542ea5",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 259.16,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42318,
    "c": 0.17872,
    "h": 291.5
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#542EA5
secondary
#A6C06F
accent
#E048AF
background
#F9F6FC
surface
#F1EBF8
border
#CBC6D1
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #542EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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