#542DCA#542DCA

#542DCA is a mid, highly saturated violet. Relative luminance 0.080; OKLCH L 45.7% C 0.222 H 284.8°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#542DCA
RGBrgb(84, 45, 202)
HSLhsl(255, 64%, 48%)
HSVhsv(255, 78%, 79%)
CMYKcmyk(58.4%, 77.7%, 0%, 20.8%)
CIE-LABlab(34.03, 56.04, -74.55)
CIE-LCHlch(34.03, 93.27, 306.93°)
OKLaboklab(45.66% 0.0567 -0.2148)
OKLCHoklch(45.66% 0.222 284.8)
XYZxyz(15.2520, 8.0249, 56.6109)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DCA #A3CA2D
analogous
#2D55CA #542DCA #A22DCA
triadic
#542DCA #CA542D #2DCA54
tetradic
#542DCA #CA2D55 #A3CA2D #2DCAA2
square
#542DCA #CA2D55 #A3CA2D #2DCAA2
split-complementary
#542DCA #CAA22D #55CA2D
monochromatic
#2A1766 #3F2298 #542DCA #7A5ADA #A28CE5

Accessibility & contrast

On white

8.06
#542DCA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#542DCA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DCA
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DCA#FFFFFF#000000##FFFFFF
##542DCA1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CE
Deuteranopia (green-blind)
#004BC7
Tritanopia (blue-blind)
#0C5B7B
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #542dca;
/* rgb */ color: rgb(84, 45, 202);
/* oklch */ color: oklch(45.7% 0.222 284.8);
Tailwind
colors: {
  custom: {
    50: '#926bdb',
    500: '#542dca',
    950: '#000000',
  },
}
SCSS
$custom: #542dca;
$custom-light: #926bdb;
$custom-dark: #000000;
JSON
{
  "hex": "#542dca",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 254.904,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45655,
    "c": 0.2222,
    "h": 284.8
  },
  "luminance": 0.08026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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