#542DC2#542DC2

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

Color values

HEX#542DC2
RGBrgb(84, 45, 194)
HSLhsl(256, 62%, 47%)
HSVhsv(256, 77%, 76%)
CMYKcmyk(56.7%, 76.8%, 0%, 23.9%)
CIE-LABlab(33.26, 53.80, -71.16)
CIE-LCHlch(33.26, 89.21, 307.09°)
OKLaboklab(44.88% 0.059 -0.2049)
OKLCHoklch(44.88% 0.213 286.1)
XYZxyz(14.3292, 7.6558, 51.7511)
Luminance0.0766 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DC2 #9BC22D
analogous
#2D50C2 #542DC2 #9F2DC2
triadic
#542DC2 #C2542D #2DC254
tetradic
#542DC2 #C22D50 #9BC22D #2DC29F
square
#542DC2 #C22D50 #9BC22D #2DC29F
split-complementary
#542DC2 #C29F2D #50C22D
monochromatic
#29165F #3E2190 #542DC2 #7755D7 #9F86E3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##542DC2#FFFFFF#000000##FFFFFF
##542DC21.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)
#0052C6
Deuteranopia (green-blind)
#004ABF
Tritanopia (blue-blind)
#1E5876
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542dc2;
/* rgb */ color: rgb(84, 45, 194);
/* oklch */ color: oklch(44.9% 0.213 286.1);
Tailwind
colors: {
  custom: {
    50: '#906bd6',
    500: '#542dc2',
    950: '#000000',
  },
}
SCSS
$custom: #542dc2;
$custom-light: #906bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#542dc2",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 255.705,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44877,
    "c": 0.21323,
    "h": 286.1
  },
  "luminance": 0.07657
}

Semantic roles & 50–950 ramp

primary
#542DC2
secondary
#B8CD7E
accent
#E542BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #542DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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