#542CB2#542CB2

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

Color values

HEX#542CB2
RGBrgb(84, 44, 178)
HSLhsl(258, 60%, 44%)
HSVhsv(258, 75%, 70%)
CMYKcmyk(52.8%, 75.3%, 0%, 30.2%)
CIE-LABlab(31.58, 49.80, -64.45)
CIE-LCHlch(31.58, 81.45, 307.69°)
OKLaboklab(43.24% 0.0641 -0.1853)
OKLCHoklch(43.24% 0.196 289.1)
XYZxyz(12.5904, 6.8999, 42.7793)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CB2 #8AB22C
analogous
#2C47B2 #542CB2 #972CB2
triadic
#542CB2 #B2542C #2CB254
tetradic
#542CB2 #B22C47 #8AB22C #2CB297
square
#542CB2 #B22C47 #8AB22C #2CB297
split-complementary
#542CB2 #B2972C #47B22C
monochromatic
#261450 #3D2081 #542CB2 #7249D2 #987ADE

Accessibility & contrast

On white

8.82
#542CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542CB2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CB2#FFFFFF#000000##FFFFFF
##542CB21.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #542cb2;
/* rgb */ color: rgb(84, 44, 178);
/* oklch */ color: oklch(43.2% 0.196 289.1);
Tailwind
colors: {
  custom: {
    50: '#8e6aca',
    500: '#542cb2',
    950: '#000000',
  },
}
SCSS
$custom: #542cb2;
$custom-light: #8e6aca;
$custom-dark: #000000;
JSON
{
  "hex": "#542cb2",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 257.91,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.43244,
    "c": 0.19605,
    "h": 289.1
  },
  "luminance": 0.06901
}

Semantic roles & 50–950 ramp

primary
#542CB2
secondary
#AEC673
accent
#E444B4
background
#F9F6FC
surface
#F2EBF9
border
#CCC6D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #542CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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