#542DC8#542DC8

#542DC8 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.5% C 0.220 H 285.1°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#542DC8
RGBrgb(84, 45, 200)
HSLhsl(255, 63%, 48%)
HSVhsv(255, 78%, 78%)
CMYKcmyk(58%, 77.5%, 0%, 21.6%)
CIE-LABlab(33.84, 55.48, -73.71)
CIE-LCHlch(33.84, 92.26, 306.97°)
OKLaboklab(45.46% 0.0573 -0.2124)
OKLCHoklch(45.46% 0.22 285.1)
XYZxyz(15.0167, 7.9308, 55.3719)
Luminance0.0793 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542DC8 #A1C82D
analogous
#2D53C8 #542DC8 #A12DC8
triadic
#542DC8 #C8542D #2DC854
tetradic
#542DC8 #C82D53 #A1C82D #2DC8A1
square
#542DC8 #C82D53 #A1C82D #2DC8A1
split-complementary
#542DC8 #C8A12D #53C82D
monochromatic
#2A1764 #3F2296 #542DC8 #7959DA #A18BE5

Accessibility & contrast

On white

8.12
#542DC8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#542DC8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542DC8
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542DC8#FFFFFF#000000##FFFFFF
##542DC81.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054CC
Deuteranopia (green-blind)
#004BC5
Tritanopia (blue-blind)
#125A7A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #542dc8;
/* rgb */ color: rgb(84, 45, 200);
/* oklch */ color: oklch(45.5% 0.220 285.1);
Tailwind
colors: {
  custom: {
    50: '#916bda',
    500: '#542dc8',
    950: '#000000',
  },
}
SCSS
$custom: #542dc8;
$custom-light: #916bda;
$custom-dark: #000000;
JSON
{
  "hex": "#542dc8",
  "rgb": {
    "r": 84,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 255.097,
    "s": 63.265,
    "l": 48.039
  },
  "oklch": {
    "l": 0.4546,
    "c": 0.21996,
    "h": 285.1
  },
  "luminance": 0.07932
}

Semantic roles & 50–950 ramp

primary
#542DC8
secondary
#BBCF82
accent
#E641BD
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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