#542BC3#542BC3

#542BC3 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.8% C 0.216 H 286.1°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#542BC3
RGBrgb(84, 43, 195)
HSLhsl(256, 64%, 47%)
HSVhsv(256, 78%, 76%)
CMYKcmyk(56.9%, 77.9%, 0%, 23.5%)
CIE-LABlab(33.03, 55.00, -72.11)
CIE-LCHlch(33.03, 90.70, 307.33°)
OKLaboklab(44.75% 0.0601 -0.2077)
OKLCHoklch(44.75% 0.216 286.1)
XYZxyz(14.3674, 7.5519, 52.3198)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BC3 #9AC32B
analogous
#2B4EC3 #542BC3 #A02BC3
triadic
#542BC3 #C3542B #2BC354
tetradic
#542BC3 #C32B4E #9AC32B #2BC3A0
square
#542BC3 #C32B4E #9AC32B #2BC3A0
split-complementary
#542BC3 #C3A02B #4EC32B
monochromatic
#29155F #3E2091 #542BC3 #7752D9 #9E84E4

Accessibility & contrast

On white

8.36
#542BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#542BC3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BC3
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BC3#FFFFFF#000000##FFFFFF
##542BC31.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C7
Deuteranopia (green-blind)
#0049C0
Tritanopia (blue-blind)
#1C5777
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542bc3;
/* rgb */ color: rgb(84, 43, 195);
/* oklch */ color: oklch(44.8% 0.216 286.1);
Tailwind
colors: {
  custom: {
    50: '#916ad6',
    500: '#542bc3',
    950: '#000000',
  },
}
SCSS
$custom: #542bc3;
$custom-light: #916ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#542bc3",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 195
  },
  "hsl": {
    "h": 256.184,
    "s": 63.866,
    "l": 46.667
  },
  "oklch": {
    "l": 0.4475,
    "c": 0.21619,
    "h": 286.1
  },
  "luminance": 0.07553
}

Semantic roles & 50–950 ramp

primary
#542BC3
secondary
#B7CD7D
accent
#E741BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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