#542DB2#542DB2

#542DB2 is a dark, vivid violet. Relative luminance 0.070; OKLCH L 43.4% C 0.195 H 288.9°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#542DB2
RGBrgb(84, 45, 178)
HSLhsl(258, 60%, 44%)
HSVhsv(258, 75%, 70%)
CMYKcmyk(52.8%, 74.7%, 0%, 30.2%)
CIE-LABlab(31.75, 49.31, -64.17)
CIE-LCHlch(31.75, 80.93, 307.54°)
OKLaboklab(43.37% 0.0633 -0.1844)
OKLCHoklch(43.37% 0.195 288.9)
XYZxyz(12.6281, 6.9754, 42.7918)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DB2 #8BB22D
analogous
#2D48B2 #542DB2 #962DB2
triadic
#542DB2 #B2542D #2DB254
tetradic
#542DB2 #B22D48 #8BB22D #2DB296
square
#542DB2 #B22D48 #8BB22D #2DB296
split-complementary
#542DB2 #B2962D #48B22D
monochromatic
#261450 #3D2181 #542DB2 #724BD1 #987CDE

Accessibility & contrast

On white

8.77
#542DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#542DB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DB2
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DB2#FFFFFF#000000##FFFFFF
##542DB21.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB6
Deuteranopia (green-blind)
#0047B0
Tritanopia (blue-blind)
#30516D
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #542db2;
/* rgb */ color: rgb(84, 45, 178);
/* oklch */ color: oklch(43.4% 0.195 288.9);
Tailwind
colors: {
  custom: {
    50: '#8e6aca',
    500: '#542db2',
    950: '#000000',
  },
}
SCSS
$custom: #542db2;
$custom-light: #8e6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#542db2",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 257.594,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.43366,
    "c": 0.195,
    "h": 288.9
  },
  "luminance": 0.06976
}

Semantic roles & 50–950 ramp

primary
#542DB2
secondary
#AEC675
accent
#E345B5
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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