#542FC4#542FC4

#542FC4 is a mid, highly saturated violet. Relative luminance 0.079; OKLCH L 45.3% C 0.214 H 285.5°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#542FC4
RGBrgb(84, 47, 196)
HSLhsl(255, 61%, 48%)
HSVhsv(255, 76%, 77%)
CMYKcmyk(57.1%, 76%, 0%, 23.1%)
CIE-LABlab(33.78, 53.42, -71.47)
CIE-LCHlch(33.78, 89.23, 306.78°)
OKLaboklab(45.3% 0.0571 -0.2058)
OKLCHoklch(45.3% 0.214 285.5)
XYZxyz(14.6335, 7.9025, 52.9681)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542FC4 #9FC42F
analogous
#2F55C4 #542FC4 #9E2FC4
triadic
#542FC4 #C4542F #2FC454
tetradic
#542FC4 #C42F55 #9FC42F #2FC49E
square
#542FC4 #C42F55 #9FC42F #2FC49E
split-complementary
#542FC4 #C49E2F #55C42F
monochromatic
#2A1761 #3F2393 #542FC4 #7859D7 #A08AE3

Accessibility & contrast

On white

8.14
#542FC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#542FC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542FC4
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542FC4#FFFFFF#000000##FFFFFF
##542FC41.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053C8
Deuteranopia (green-blind)
#004BC1
Tritanopia (blue-blind)
#1A5978
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #542fc4;
/* rgb */ color: rgb(84, 47, 196);
/* oklch */ color: oklch(45.3% 0.214 285.5);
Tailwind
colors: {
  custom: {
    50: '#916cd7',
    500: '#542fc4',
    950: '#000000',
  },
}
SCSS
$custom: #542fc4;
$custom-light: #916cd7;
$custom-dark: #000000;
JSON
{
  "hex": "#542fc4",
  "rgb": {
    "r": 84,
    "g": 47,
    "b": 196
  },
  "hsl": {
    "h": 254.899,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45302,
    "c": 0.2136,
    "h": 285.5
  },
  "luminance": 0.07903
}

Semantic roles & 50–950 ramp

primary
#542FC4
secondary
#BACD82
accent
#E443BC
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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