#542EC0#542EC0

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

Color values

HEX#542EC0
RGBrgb(84, 46, 192)
HSLhsl(256, 61%, 47%)
HSVhsv(256, 76%, 75%)
CMYKcmyk(56.3%, 76%, 0%, 24.7%)
CIE-LABlab(33.23, 52.77, -70.02)
CIE-LCHlch(33.23, 87.68, 307.00°)
OKLaboklab(44.8% 0.0589 -0.2016)
OKLCHoklch(44.8% 0.21 286.3)
XYZxyz(14.1447, 7.6438, 50.5890)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542EC0 #9AC02E
analogous
#2E51C0 #542EC0 #9D2EC0
triadic
#542EC0 #C0542E #2EC054
tetradic
#542EC0 #C02E51 #9AC02E #2EC09D
square
#542EC0 #C02E51 #9AC02E #2EC09D
split-complementary
#542EC0 #C09D2E #51C02E
monochromatic
#29165D #3E228F #542EC0 #7755D6 #9E86E2

Accessibility & contrast

On white

8.30
#542EC0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#542EC0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542EC0
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542EC0#FFFFFF#000000##FFFFFF
##542EC01.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C4
Deuteranopia (green-blind)
#004ABD
Tritanopia (blue-blind)
#215775
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542ec0;
/* rgb */ color: rgb(84, 46, 192);
/* oklch */ color: oklch(44.8% 0.210 286.3);
Tailwind
colors: {
  custom: {
    50: '#906bd4',
    500: '#542ec0',
    950: '#000000',
  },
}
SCSS
$custom: #542ec0;
$custom-light: #906bd4;
$custom-dark: #000000;
JSON
{
  "hex": "#542ec0",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 192
  },
  "hsl": {
    "h": 255.616,
    "s": 61.345,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44802,
    "c": 0.21002,
    "h": 286.3
  },
  "luminance": 0.07645
}

Semantic roles & 50–950 ramp

primary
#542EC0
secondary
#B7CC7E
accent
#E443BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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