#542BC2#542BC2

#542BC2 is a dark, highly saturated violet. Relative luminance 0.075; OKLCH L 44.7% C 0.215 H 286.3°. Best body text is #FFFFFF at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#542BC2
RGBrgb(84, 43, 194)
HSLhsl(256, 64%, 46%)
HSVhsv(256, 78%, 76%)
CMYKcmyk(56.7%, 77.8%, 0%, 23.9%)
CIE-LABlab(32.93, 54.73, -71.69)
CIE-LCHlch(32.93, 90.19, 307.36°)
OKLaboklab(44.65% 0.0604 -0.2064)
OKLCHoklch(44.65% 0.215 286.3)
XYZxyz(14.2547, 7.5068, 51.7263)
Luminance0.0751 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542BC2 #99C22B
analogous
#2B4EC2 #542BC2 #A02BC2
triadic
#542BC2 #C2542B #2BC254
tetradic
#542BC2 #C22B4E #99C22B #2BC2A0
square
#542BC2 #C22B4E #99C22B #2BC2A0
split-complementary
#542BC2 #C2A02B #4EC22B
monochromatic
#29155E #3E2090 #542BC2 #7652D9 #9E84E4

Accessibility & contrast

On white

8.39
#542BC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#542BC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542BC2
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542BC2#FFFFFF#000000##FFFFFF
##542BC21.008.392.508.39
#FFFFFF8.391.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051C6
Deuteranopia (green-blind)
#0049BF
Tritanopia (blue-blind)
#1E5776
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #542bc2;
/* rgb */ color: rgb(84, 43, 194);
/* oklch */ color: oklch(44.7% 0.215 286.3);
Tailwind
colors: {
  custom: {
    50: '#916ad6',
    500: '#542bc2',
    950: '#000000',
  },
}
SCSS
$custom: #542bc2;
$custom-light: #916ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#542bc2",
  "rgb": {
    "r": 84,
    "g": 43,
    "b": 194
  },
  "hsl": {
    "h": 256.291,
    "s": 63.713,
    "l": 46.471
  },
  "oklch": {
    "l": 0.44653,
    "c": 0.21507,
    "h": 286.3
  },
  "luminance": 0.07508
}

Semantic roles & 50–950 ramp

primary
#542BC2
secondary
#B7CD7C
accent
#E741BA
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542BC2

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

Preview Lab → · Contrast checker → · Palette generator →

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