#542CA1#542CA1

#542CA1 is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.7% C 0.176 H 292.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).

Color values

HEX#542CA1
RGBrgb(84, 44, 161)
HSLhsl(261, 57%, 40%)
HSVhsv(261, 73%, 63%)
CMYKcmyk(47.8%, 72.7%, 0%, 36.9%)
CIE-LABlab(30.06, 45.05, -56.73)
CIE-LCHlch(30.06, 72.44, 308.46°)
OKLaboklab(41.7% 0.0681 -0.1626)
OKLCHoklch(41.7% 0.176 292.7)
XYZxyz(10.9881, 6.2590, 34.3405)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542CA1 #79A12C
analogous
#2C3EA1 #542CA1 #8E2CA1
triadic
#542CA1 #A1542C #2CA154
tetradic
#542CA1 #A12C3E #79A12C #2CA18E
square
#542CA1 #A12C3E #79A12C #2CA18E
split-complementary
#542CA1 #A18E2C #3EA12C
monochromatic
#221241 #3B1F71 #542CA1 #6F40CB #9370D8

Accessibility & contrast

On white

9.33
#542CA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#542CA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542CA1
9.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542CA1#FFFFFF#000000##FFFFFF
##542CA11.009.332.259.33
#FFFFFF9.331.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048A4
Deuteranopia (green-blind)
#00459F
Tritanopia (blue-blind)
#3C4A64
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #542ca1;
/* rgb */ color: rgb(84, 44, 161);
/* oklch */ color: oklch(41.7% 0.176 292.7);
Tailwind
colors: {
  custom: {
    50: '#8c69be',
    500: '#542ca1',
    950: '#000000',
  },
}
SCSS
$custom: #542ca1;
$custom-light: #8c69be;
$custom-dark: #000000;
JSON
{
  "hex": "#542ca1",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 161
  },
  "hsl": {
    "h": 260.513,
    "s": 57.073,
    "l": 40.196
  },
  "oklch": {
    "l": 0.41703,
    "c": 0.17633,
    "h": 292.7
  },
  "luminance": 0.06259
}

Semantic roles & 50–950 ramp

primary
#542CA1
secondary
#A2BF6A
accent
#E047AC
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #542CA1

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

Preview Lab → · Contrast checker → · Palette generator →

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