#542DC4#542DC4

#542DC4 is a mid, highly saturated violet. Relative luminance 0.077; OKLCH L 45.1% C 0.215 H 285.7°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#542DC4
RGBrgb(84, 45, 196)
HSLhsl(255, 63%, 47%)
HSVhsv(255, 77%, 77%)
CMYKcmyk(57.1%, 77%, 0%, 23.1%)
CIE-LABlab(33.45, 54.36, -72.01)
CIE-LCHlch(33.45, 90.23, 307.05°)
OKLaboklab(45.07% 0.0585 -0.2074)
OKLCHoklch(45.07% 0.215 285.7)
XYZxyz(14.5553, 7.7463, 52.9421)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DC4 #9DC42D
analogous
#2D51C4 #542DC4 #A02DC4
triadic
#542DC4 #C4542D #2DC454
tetradic
#542DC4 #C42D51 #9DC42D #2DC4A0
square
#542DC4 #C42D51 #9DC42D #2DC4A0
split-complementary
#542DC4 #C4A02D #51C42D
monochromatic
#291660 #3F2292 #542DC4 #7856D8 #9F88E4

Accessibility & contrast

On white

8.24
#542DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#542DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DC4
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DC4#FFFFFF#000000##FFFFFF
##542DC41.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C8
Deuteranopia (green-blind)
#004AC1
Tritanopia (blue-blind)
#1A5978
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #542dc4;
/* rgb */ color: rgb(84, 45, 196);
/* oklch */ color: oklch(45.1% 0.215 285.7);
Tailwind
colors: {
  custom: {
    50: '#916bd7',
    500: '#542dc4',
    950: '#000000',
  },
}
SCSS
$custom: #542dc4;
$custom-light: #916bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#542dc4",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 196
  },
  "hsl": {
    "h": 255.497,
    "s": 62.656,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45071,
    "c": 0.21548,
    "h": 285.7
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#542DC4
secondary
#B9CD80
accent
#E642BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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