#542DB0#542DB0

#542DB0 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 43.2% C 0.193 H 289.3°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#542DB0
RGBrgb(84, 45, 176)
HSLhsl(258, 59%, 43%)
HSVhsv(258, 74%, 69%)
CMYKcmyk(52.3%, 74.4%, 0%, 31%)
CIE-LABlab(31.57, 48.75, -63.28)
CIE-LCHlch(31.57, 79.88, 307.61°)
OKLaboklab(43.18% 0.0638 -0.1818)
OKLCHoklch(43.18% 0.193 289.3)
XYZxyz(12.4287, 6.8956, 41.7420)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DB0 #89B02D
analogous
#2D47B0 #542DB0 #952DB0
triadic
#542DB0 #B0542D #2DB054
tetradic
#542DB0 #B02D47 #89B02D #2DB095
square
#542DB0 #B02D47 #89B02D #2DB095
split-complementary
#542DB0 #B0952D #47B02D
monochromatic
#25144F #3D217F #542DB0 #724AD1 #987ADD

Accessibility & contrast

On white

8.83
#542DB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#542DB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DB0
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DB0#FFFFFF#000000##FFFFFF
##542DB01.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DB4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#32516C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #542db0;
/* rgb */ color: rgb(84, 45, 176);
/* oklch */ color: oklch(43.2% 0.193 289.3);
Tailwind
colors: {
  custom: {
    50: '#8e6ac9',
    500: '#542db0',
    950: '#000000',
  },
}
SCSS
$custom: #542db0;
$custom-light: #8e6ac9;
$custom-dark: #000000;
JSON
{
  "hex": "#542db0",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 176
  },
  "hsl": {
    "h": 257.863,
    "s": 59.276,
    "l": 43.333
  },
  "oklch": {
    "l": 0.43181,
    "c": 0.1927,
    "h": 289.3
  },
  "luminance": 0.06896
}

Semantic roles & 50–950 ramp

primary
#542DB0
secondary
#ADC573
accent
#E245B4
background
#F9F6FC
surface
#F2EBF8
border
#CCC6D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542DB0

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

Preview Lab → · Contrast checker → · Palette generator →

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