#542EC2#542EC2

#542EC2 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 45.0% C 0.212 H 285.9°. Best body text is #FFFFFF at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#542EC2
RGBrgb(84, 46, 194)
HSLhsl(255, 62%, 47%)
HSVhsv(255, 76%, 76%)
CMYKcmyk(56.7%, 76.3%, 0%, 23.9%)
CIE-LABlab(33.42, 53.33, -70.89)
CIE-LCHlch(33.42, 88.71, 306.96°)
OKLaboklab(44.99% 0.0583 -0.2041)
OKLCHoklch(44.99% 0.212 285.9)
XYZxyz(14.3678, 7.7330, 51.7640)
Luminance0.0773 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EC2 #9CC22E
analogous
#2E52C2 #542EC2 #9E2EC2
triadic
#542EC2 #C2542E #2EC254
tetradic
#542EC2 #C22E52 #9CC22E #2EC29E
square
#542EC2 #C22E52 #9CC22E #2EC29E
split-complementary
#542EC2 #C29E2E #52C22E
monochromatic
#29175F #3F2291 #542EC2 #7756D7 #9F88E3

Accessibility & contrast

On white

8.25
#542EC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#542EC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EC2
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EC2#FFFFFF#000000##FFFFFF
##542EC21.008.252.558.25
#FFFFFF8.251.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C6
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#1E5877
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #542ec2;
/* rgb */ color: rgb(84, 46, 194);
/* oklch */ color: oklch(45.0% 0.212 285.9);
Tailwind
colors: {
  custom: {
    50: '#906bd6',
    500: '#542ec2',
    950: '#000000',
  },
}
SCSS
$custom: #542ec2;
$custom-light: #906bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#542ec2",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 194
  },
  "hsl": {
    "h": 255.405,
    "s": 61.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.44993,
    "c": 0.21229,
    "h": 285.9
  },
  "luminance": 0.07734
}

Semantic roles & 50–950 ramp

primary
#542EC2
secondary
#B9CC7F
accent
#E543BB
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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