#542DCC#542DCC

#542DCC is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.9% C 0.224 H 284.5°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#542DCC
RGBrgb(84, 45, 204)
HSLhsl(255, 64%, 49%)
HSVhsv(255, 78%, 80%)
CMYKcmyk(58.8%, 77.9%, 0%, 20%)
CIE-LABlab(34.23, 56.60, -75.39)
CIE-LCHlch(34.23, 94.27, 306.89°)
OKLaboklab(45.85% 0.0562 -0.2173)
OKLCHoklch(45.85% 0.224 284.5)
XYZxyz(15.4903, 8.1202, 57.8661)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DCC #A5CC2D
analogous
#2D56CC #542DCC #A42DCC
triadic
#542DCC #CC542D #2DCC54
tetradic
#542DCC #CC2D56 #A5CC2D #2DCCA4
square
#542DCC #CC2D56 #A5CC2D #2DCCA4
split-complementary
#542DCC #CCA42D #56CC2D
monochromatic
#2B1768 #3F229A #542DCC #7B5BDB #A38DE6

Accessibility & contrast

On white

8.00
#542DCC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#542DCC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DCC
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DCC#FFFFFF#000000##FFFFFF
##542DCC1.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542dcc;
/* rgb */ color: rgb(84, 45, 204);
/* oklch */ color: oklch(45.9% 0.224 284.5);
Tailwind
colors: {
  custom: {
    50: '#926bdd',
    500: '#542dcc',
    950: '#000000',
  },
}
SCSS
$custom: #542dcc;
$custom-light: #926bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#542dcc",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 254.717,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45852,
    "c": 0.22442,
    "h": 284.5
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#542DCC
secondary
#BED085
accent
#E741BE
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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