#542CBD#542CBD

#542CBD is a dark, highly saturated violet. Relative luminance 0.074; OKLCH L 44.3% C 0.209 H 287.0°. Best body text is #FFFFFF at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#542CBD
RGBrgb(84, 44, 189)
HSLhsl(257, 62%, 46%)
HSVhsv(257, 77%, 74%)
CMYKcmyk(55.6%, 76.7%, 0%, 25.9%)
CIE-LABlab(32.61, 52.88, -69.27)
CIE-LCHlch(32.61, 87.15, 307.35°)
OKLaboklab(44.28% 0.0611 -0.1994)
OKLCHoklch(44.28% 0.209 287)
XYZxyz(13.7394, 7.3596, 48.8308)
Luminance0.0736 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CBD #95BD2C
analogous
#2C4CBD #542CBD #9C2CBD
triadic
#542CBD #BD542C #2CBD54
tetradic
#542CBD #BD2C4C #95BD2C #2CBD9C
square
#542CBD #BD2C4C #95BD2C #2CBD9C
split-complementary
#542CBD #BD9C2C #4CBD2C
monochromatic
#28155A #3E208B #542CBD #7550D6 #9C82E2

Accessibility & contrast

On white

8.50
#542CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#542CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CBD
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CBD#FFFFFF#000000##FFFFFF
##542CBD1.008.502.478.50
#FFFFFF8.501.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050C1
Deuteranopia (green-blind)
#0049BA
Tritanopia (blue-blind)
#255573
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542cbd;
/* rgb */ color: rgb(84, 44, 189);
/* oklch */ color: oklch(44.3% 0.209 287.0);
Tailwind
colors: {
  custom: {
    50: '#906ad2',
    500: '#542cbd',
    950: '#000000',
  },
}
SCSS
$custom: #542cbd;
$custom-light: #906ad2;
$custom-dark: #000000;
JSON
{
  "hex": "#542cbd",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 256.552,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.44283,
    "c": 0.20854,
    "h": 287
  },
  "luminance": 0.0736
}

Semantic roles & 50–950 ramp

primary
#542CBD
secondary
#B4CB7A
accent
#E542B8
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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