#542CC4#542CC4

#542CC4 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.216 H 285.9°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#542CC4
RGBrgb(84, 44, 196)
HSLhsl(256, 63%, 47%)
HSVhsv(256, 78%, 77%)
CMYKcmyk(57.1%, 77.6%, 0%, 23.1%)
CIE-LABlab(33.29, 54.83, -72.28)
CIE-LCHlch(33.29, 90.72, 307.18°)
OKLaboklab(44.96% 0.0591 -0.2082)
OKLCHoklch(44.96% 0.216 285.9)
XYZxyz(14.5176, 7.6709, 52.9295)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CC4 #9CC42C
analogous
#2C50C4 #542CC4 #A02CC4
triadic
#542CC4 #C4542C #2CC454
tetradic
#542CC4 #C42C50 #9CC42C #2CC4A0
square
#542CC4 #C42C50 #9CC42C #2CC4A0
split-complementary
#542CC4 #C4A02C #50C42C
monochromatic
#291660 #3F2192 #542CC4 #7754D9 #9F86E4

Accessibility & contrast

On white

8.29
#542CC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#542CC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CC4
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CC4#FFFFFF#000000##FFFFFF
##542CC41.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C8
Deuteranopia (green-blind)
#004AC1
Tritanopia (blue-blind)
#1B5877
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542cc4;
/* rgb */ color: rgb(84, 44, 196);
/* oklch */ color: oklch(45.0% 0.216 285.9);
Tailwind
colors: {
  custom: {
    50: '#916ad7',
    500: '#542cc4',
    950: '#000000',
  },
}
SCSS
$custom: #542cc4;
$custom-light: #916ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#542cc4",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 196
  },
  "hsl": {
    "h": 255.789,
    "s": 63.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44958,
    "c": 0.2164,
    "h": 285.9
  },
  "luminance": 0.07672
}

Semantic roles & 50–950 ramp

primary
#542CC4
secondary
#B9CD7E
accent
#E641BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542CC4

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

Preview Lab → · Contrast checker → · Palette generator →

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