#542BC4#542BC4

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

Color values

HEX#542BC4
RGBrgb(84, 43, 196)
HSLhsl(256, 64%, 47%)
HSVhsv(256, 78%, 77%)
CMYKcmyk(57.1%, 78.1%, 0%, 23.1%)
CIE-LABlab(33.13, 55.28, -72.54)
CIE-LCHlch(33.13, 91.20, 307.31°)
OKLaboklab(44.85% 0.0598 -0.2089)
OKLCHoklch(44.85% 0.217 286)
XYZxyz(14.4808, 7.5972, 52.9172)
Luminance0.0760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BC4 #9BC42B
analogous
#2B4FC4 #542BC4 #A02BC4
triadic
#542BC4 #C4542B #2BC454
tetradic
#542BC4 #C42B4F #9BC42B #2BC4A0
square
#542BC4 #C42B4F #9BC42B #2BC4A0
split-complementary
#542BC4 #C4A02B #4FC42B
monochromatic
#291560 #3E2092 #542BC4 #7753D9 #9F85E4

Accessibility & contrast

On white

8.33
#542BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#542BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BC4
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BC4#FFFFFF#000000##FFFFFF
##542BC41.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C8
Deuteranopia (green-blind)
#0049C1
Tritanopia (blue-blind)
#1B5877
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542bc4;
/* rgb */ color: rgb(84, 43, 196);
/* oklch */ color: oklch(44.8% 0.217 286.0);
Tailwind
colors: {
  custom: {
    50: '#916ad7',
    500: '#542bc4',
    950: '#000000',
  },
}
SCSS
$custom: #542bc4;
$custom-light: #916ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#542bc4",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 196
  },
  "hsl": {
    "h": 256.078,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44848,
    "c": 0.2173,
    "h": 286
  },
  "luminance": 0.07598
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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