#542ECC#542ECC

#542ECC is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 46.0% C 0.224 H 284.4°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#542ECC
RGBrgb(84, 46, 204)
HSLhsl(254, 63%, 49%)
HSVhsv(254, 77%, 80%)
CMYKcmyk(58.8%, 77.5%, 0%, 20%)
CIE-LABlab(34.39, 56.14, -75.13)
CIE-LCHlch(34.39, 93.79, 306.77°)
OKLaboklab(45.96% 0.0555 -0.2165)
OKLCHoklch(45.96% 0.224 284.4)
XYZxyz(15.5289, 8.1974, 57.8790)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542ECC #A6CC2E
analogous
#2E57CC #542ECC #A32ECC
triadic
#542ECC #CC542E #2ECC54
tetradic
#542ECC #CC2E57 #A6CC2E #2ECCA3
square
#542ECC #CC2E57 #A6CC2E #2ECCA3
split-complementary
#542ECC #CCA32E #57CC2E
monochromatic
#2B1768 #3F239A #542ECC #7B5DDA #A48FE6

Accessibility & contrast

On white

7.96
#542ECC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#542ECC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542ECC
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542ECC#FFFFFF#000000##FFFFFF
##542ECC1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055D0
Deuteranopia (green-blind)
#004CC9
Tritanopia (blue-blind)
#045C7C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #542ecc;
/* rgb */ color: rgb(84, 46, 204);
/* oklch */ color: oklch(46.0% 0.224 284.4);
Tailwind
colors: {
  custom: {
    50: '#926cdd',
    500: '#542ecc',
    950: '#000000',
  },
}
SCSS
$custom: #542ecc;
$custom-light: #926cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#542ecc",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 204
  },
  "hsl": {
    "h": 254.43,
    "s": 63.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45963,
    "c": 0.22354,
    "h": 284.4
  },
  "luminance": 0.08198
}

Semantic roles & 50–950 ramp

primary
#542ECC
secondary
#BED086
accent
#E642BF
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542ECC

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

Preview Lab → · Contrast checker → · Palette generator →

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