#542CC2#542CC2

#542CC2 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.8% C 0.214 H 286.2°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#542CC2
RGBrgb(84, 44, 194)
HSLhsl(256, 63%, 47%)
HSVhsv(256, 77%, 76%)
CMYKcmyk(56.7%, 77.3%, 0%, 23.9%)
CIE-LABlab(33.09, 54.27, -71.42)
CIE-LCHlch(33.09, 89.70, 307.23°)
OKLaboklab(44.76% 0.0597 -0.2057)
OKLCHoklch(44.76% 0.214 286.2)
XYZxyz(14.2915, 7.5804, 51.7386)
Luminance0.0758 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CC2 #9AC22C
analogous
#2C4FC2 #542CC2 #9F2CC2
triadic
#542CC2 #C2542C #2CC254
tetradic
#542CC2 #C22C4F #9AC22C #2CC29F
square
#542CC2 #C22C4F #9AC22C #2CC29F
split-complementary
#542CC2 #C29F2C #4FC22C
monochromatic
#29155E #3E2190 #542CC2 #7753D8 #9E85E3

Accessibility & contrast

On white

8.35
#542CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#542CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CC2
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CC2#FFFFFF#000000##FFFFFF
##542CC21.008.352.528.35
#FFFFFF8.351.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#1E5776
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542cc2;
/* rgb */ color: rgb(84, 44, 194);
/* oklch */ color: oklch(44.8% 0.214 286.2);
Tailwind
colors: {
  custom: {
    50: '#906ad6',
    500: '#542cc2',
    950: '#000000',
  },
}
SCSS
$custom: #542cc2;
$custom-light: #906ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#542cc2",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 194
  },
  "hsl": {
    "h": 256,
    "s": 63.025,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44764,
    "c": 0.21417,
    "h": 286.2
  },
  "luminance": 0.07581
}

Semantic roles & 50–950 ramp

primary
#542CC2
secondary
#B7CD7D
accent
#E642BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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