#542CC3#542CC3

#542CC3 is a dark, highly saturated violet. Relative luminance 0.076; OKLCH L 44.9% C 0.215 H 286.0°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#542CC3
RGBrgb(84, 44, 195)
HSLhsl(256, 63%, 47%)
HSVhsv(256, 77%, 76%)
CMYKcmyk(56.9%, 77.4%, 0%, 23.5%)
CIE-LABlab(33.19, 54.55, -71.85)
CIE-LCHlch(33.19, 90.21, 307.20°)
OKLaboklab(44.86% 0.0594 -0.2069)
OKLCHoklch(44.86% 0.215 286)
XYZxyz(14.4042, 7.6255, 52.3320)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CC3 #9BC32C
analogous
#2C50C3 #542CC3 #A02CC3
triadic
#542CC3 #C3542C #2CC354
tetradic
#542CC3 #C32C50 #9BC32C #2CC3A0
square
#542CC3 #C32C50 #9BC32C #2CC3A0
split-complementary
#542CC3 #C3A02C #50C32C
monochromatic
#29155F #3E2191 #542CC3 #7754D8 #9F86E4

Accessibility & contrast

On white

8.32
#542CC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #542CC3
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CC3#FFFFFF#000000##FFFFFF
##542CC31.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C7
Deuteranopia (green-blind)
#004AC0
Tritanopia (blue-blind)
#1C5877
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #542cc3;
/* rgb */ color: rgb(84, 44, 195);
/* oklch */ color: oklch(44.9% 0.215 286.0);
Tailwind
colors: {
  custom: {
    50: '#916ad6',
    500: '#542cc3',
    950: '#000000',
  },
}
SCSS
$custom: #542cc3;
$custom-light: #916ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#542cc3",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 195
  },
  "hsl": {
    "h": 255.894,
    "s": 63.18,
    "l": 46.863
  },
  "oklch": {
    "l": 0.44861,
    "c": 0.21528,
    "h": 286
  },
  "luminance": 0.07626
}

Semantic roles & 50–950 ramp

primary
#542CC3
secondary
#B8CD7E
accent
#E642BB
background
#F9F6FD
surface
#F2EBFA
border
#CCC6D3
text
#0E0715
muted
#7E7A83

Preview Lab

Preview with #542CC3

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

Preview Lab → · Contrast checker → · Palette generator →

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