#542DC3#542DC3

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

Color values

HEX#542DC3
RGBrgb(84, 45, 195)
HSLhsl(256, 63%, 47%)
HSVhsv(256, 77%, 76%)
CMYKcmyk(56.9%, 76.9%, 0%, 23.5%)
CIE-LABlab(33.35, 54.08, -71.59)
CIE-LCHlch(33.35, 89.72, 307.07°)
OKLaboklab(44.97% 0.0587 -0.2062)
OKLCHoklch(44.97% 0.214 285.9)
XYZxyz(14.4419, 7.7009, 52.3446)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DC3 #9CC32D
analogous
#2D51C3 #542DC3 #9F2DC3
triadic
#542DC3 #C3542D #2DC354
tetradic
#542DC3 #C32D51 #9CC32D #2DC39F
square
#542DC3 #C32D51 #9CC32D #2DC39F
split-complementary
#542DC3 #C39F2D #51C32D
monochromatic
#291660 #3F2291 #542DC3 #7755D8 #9F87E3

Accessibility & contrast

On white

8.27
#542DC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#542DC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DC3
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DC3#FFFFFF#000000##FFFFFF
##542DC31.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#1C5877
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542dc3;
/* rgb */ color: rgb(84, 45, 195);
/* oklch */ color: oklch(45.0% 0.214 285.9);
Tailwind
colors: {
  custom: {
    50: '#916bd6',
    500: '#542dc3',
    950: '#000000',
  },
}
SCSS
$custom: #542dc3;
$custom-light: #916bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#542dc3",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 195
  },
  "hsl": {
    "h": 255.6,
    "s": 62.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44974,
    "c": 0.21436,
    "h": 285.9
  },
  "luminance": 0.07702
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542DC3

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

Preview Lab → · Contrast checker → · Palette generator →

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