#542DC1#542DC1

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

Color values

HEX#542DC1
RGBrgb(84, 45, 193)
HSLhsl(256, 62%, 47%)
HSVhsv(256, 77%, 76%)
CMYKcmyk(56.5%, 76.7%, 0%, 24.3%)
CIE-LABlab(33.16, 53.52, -70.73)
CIE-LCHlch(33.16, 88.70, 307.12°)
OKLaboklab(44.78% 0.0593 -0.2036)
OKLCHoklch(44.78% 0.212 286.2)
XYZxyz(14.2173, 7.6110, 51.1617)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DC1 #9AC12D
analogous
#2D50C1 #542DC1 #9E2DC1
triadic
#542DC1 #C1542D #2DC154
tetradic
#542DC1 #C12D50 #9AC12D #2DC19E
square
#542DC1 #C12D50 #9AC12D #2DC19E
split-complementary
#542DC1 #C19E2D #50C12D
monochromatic
#29165E #3E218F #542DC1 #7754D7 #9E86E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542DC1#FFFFFF#000000##FFFFFF
##542DC11.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)
#0052C5
Deuteranopia (green-blind)
#004ABE
Tritanopia (blue-blind)
#1F5776
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542dc1;
/* rgb */ color: rgb(84, 45, 193);
/* oklch */ color: oklch(44.8% 0.212 286.2);
Tailwind
colors: {
  custom: {
    50: '#906bd5',
    500: '#542dc1',
    950: '#000000',
  },
}
SCSS
$custom: #542dc1;
$custom-light: #906bd5;
$custom-dark: #000000;
JSON
{
  "hex": "#542dc1",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 193
  },
  "hsl": {
    "h": 255.811,
    "s": 62.185,
    "l": 46.667
  },
  "oklch": {
    "l": 0.44781,
    "c": 0.21211,
    "h": 286.2
  },
  "luminance": 0.07612
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #542DC1

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

Preview Lab → · Contrast checker → · Palette generator →

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