#542CBA#542CBA

#542CBA is a dark, highly saturated violet. Relative luminance 0.072; OKLCH L 44.0% C 0.205 H 287.6°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#542CBA
RGBrgb(84, 44, 186)
HSLhsl(257, 62%, 45%)
HSVhsv(257, 76%, 73%)
CMYKcmyk(54.8%, 76.3%, 0%, 27.1%)
CIE-LABlab(32.33, 52.04, -67.97)
CIE-LCHlch(32.33, 85.60, 307.44°)
OKLaboklab(44% 0.0619 -0.1956)
OKLCHoklch(44% 0.205 287.6)
XYZxyz(13.4171, 7.2307, 47.1335)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CBA #92BA2C
analogous
#2C4BBA #542CBA #9B2CBA
triadic
#542CBA #BA542C #2CBA54
tetradic
#542CBA #BA2C4B #92BA2C #2CBA9B
square
#542CBA #BA2C4B #92BA2C #2CBA9B
split-complementary
#542CBA #BA9B2C #4BBA2C
monochromatic
#271557 #3E2089 #542CBA #744ED5 #9B80E1

Accessibility & contrast

On white

8.58
#542CBA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#542CBA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CBA
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CBA#FFFFFF#000000##FFFFFF
##542CBA1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004FBE
Deuteranopia (green-blind)
#0048B7
Tritanopia (blue-blind)
#285472
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #542cba;
/* rgb */ color: rgb(84, 44, 186);
/* oklch */ color: oklch(44.0% 0.205 287.6);
Tailwind
colors: {
  custom: {
    50: '#8f6ad0',
    500: '#542cba',
    950: '#000000',
  },
}
SCSS
$custom: #542cba;
$custom-light: #8f6ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#542cba",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 186
  },
  "hsl": {
    "h": 256.901,
    "s": 61.739,
    "l": 45.098
  },
  "oklch": {
    "l": 0.43996,
    "c": 0.20515,
    "h": 287.6
  },
  "luminance": 0.07231
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542CBA

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

Preview Lab → · Contrast checker → · Palette generator →

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