#542EC1#542EC1

#542EC1 is a dark, highly saturated violet. Relative luminance 0.077; OKLCH L 44.9% C 0.211 H 286.1°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#542EC1
RGBrgb(84, 46, 193)
HSLhsl(256, 62%, 47%)
HSVhsv(256, 76%, 76%)
CMYKcmyk(56.5%, 76.2%, 0%, 24.3%)
CIE-LABlab(33.32, 53.05, -70.46)
CIE-LCHlch(33.32, 88.20, 306.98°)
OKLaboklab(44.9% 0.0586 -0.2029)
OKLCHoklch(44.9% 0.211 286.1)
XYZxyz(14.2559, 7.6882, 51.1745)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EC1 #9BC12E
analogous
#2E52C1 #542EC1 #9E2EC1
triadic
#542EC1 #C1542E #2EC154
tetradic
#542EC1 #C12E52 #9BC12E #2EC19E
square
#542EC1 #C12E52 #9BC12E #2EC19E
split-complementary
#542EC1 #C19E2E #52C12E
monochromatic
#29165E #3E2290 #542EC1 #7756D7 #9F87E2

Accessibility & contrast

On white

8.27
#542EC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#542EC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EC1
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EC1#FFFFFF#000000##FFFFFF
##542EC11.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C5
Deuteranopia (green-blind)
#004ABE
Tritanopia (blue-blind)
#1F5876
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542ec1;
/* rgb */ color: rgb(84, 46, 193);
/* oklch */ color: oklch(44.9% 0.211 286.1);
Tailwind
colors: {
  custom: {
    50: '#906bd5',
    500: '#542ec1',
    950: '#000000',
  },
}
SCSS
$custom: #542ec1;
$custom-light: #906bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#542ec1",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 255.51,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44897,
    "c": 0.21115,
    "h": 286.1
  },
  "luminance": 0.07689
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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