#542CB9#542CB9

#542CB9 is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 43.9% C 0.204 H 287.8°. Best body text is #FFFFFF at 8.61:1 contrast (WCAG AA passes).

Color values

HEX#542CB9
RGBrgb(84, 44, 185)
HSLhsl(257, 62%, 45%)
HSVhsv(257, 76%, 73%)
CMYKcmyk(54.6%, 76.2%, 0%, 27.5%)
CIE-LABlab(32.23, 51.76, -67.54)
CIE-LCHlch(32.23, 85.09, 307.47°)
OKLaboklab(43.9% 0.0622 -0.1943)
OKLCHoklch(43.9% 0.204 287.8)
XYZxyz(13.3112, 7.1883, 46.5756)
Luminance0.0719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CB9 #91B92C
analogous
#2C4BB9 #542CB9 #9A2CB9
triadic
#542CB9 #B9542C #2CB954
tetradic
#542CB9 #B92C4B #91B92C #2CB99A
square
#542CB9 #B92C4B #91B92C #2CB99A
split-complementary
#542CB9 #B99A2C #4BB92C
monochromatic
#271456 #3E2088 #542CB9 #744DD5 #9B7FE1

Accessibility & contrast

On white

8.61
#542CB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#542CB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CB9
8.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CB9#FFFFFF#000000##FFFFFF
##542CB91.008.612.448.61
#FFFFFF8.611.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBD
Deuteranopia (green-blind)
#0048B6
Tritanopia (blue-blind)
#295471
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542cb9;
/* rgb */ color: rgb(84, 44, 185);
/* oklch */ color: oklch(43.9% 0.204 287.8);
Tailwind
colors: {
  custom: {
    50: '#8f6acf',
    500: '#542cb9',
    950: '#000000',
  },
}
SCSS
$custom: #542cb9;
$custom-light: #8f6acf;
$custom-dark: #000000;
JSON
{
  "hex": "#542cb9",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 185
  },
  "hsl": {
    "h": 257.021,
    "s": 61.572,
    "l": 44.902
  },
  "oklch": {
    "l": 0.43901,
    "c": 0.20402,
    "h": 287.8
  },
  "luminance": 0.07189
}

Semantic roles & 50–950 ramp

primary
#542CB9
secondary
#B2C978
accent
#E543B7
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #542CB9

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

Preview Lab → · Contrast checker → · Palette generator →

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