#542C95#542C95

#542C95 is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.7% C 0.162 H 295.8°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#542C95
RGBrgb(84, 44, 149)
HSLhsl(263, 54%, 38%)
HSVhsv(263, 70%, 58%)
CMYKcmyk(43.6%, 70.5%, 0%, 41.6%)
CIE-LABlab(29.05, 41.72, -51.06)
CIE-LCHlch(29.05, 65.94, 309.25°)
OKLaboklab(40.67% 0.0705 -0.146)
OKLCHoklch(40.67% 0.162 295.8)
XYZxyz(9.9802, 5.8559, 29.0324)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542C95 #6D952C
analogous
#2C3995 #542C95 #882C95
triadic
#542C95 #95542C #2C9554
tetradic
#542C95 #952C39 #6D952C #2C9588
square
#542C95 #952C39 #6D952C #2C9588
split-complementary
#542C95 #95882C #39952C
monochromatic
#1F1037 #391E66 #542C95 #6F3AC4 #9169D3

Accessibility & contrast

On white

9.67
#542C95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#542C95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542C95
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542C95#FFFFFF#000000##FFFFFF
##542C951.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004598
Deuteranopia (green-blind)
#004393
Tritanopia (blue-blind)
#43465D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542c95;
/* rgb */ color: rgb(84, 44, 149);
/* oklch */ color: oklch(40.7% 0.162 295.8);
Tailwind
colors: {
  custom: {
    50: '#8a68b5',
    500: '#542c95',
    950: '#000000',
  },
}
SCSS
$custom: #542c95;
$custom-light: #8a68b5;
$custom-dark: #000000;
JSON
{
  "hex": "#542c95",
  "rgb": {
    "r": 84,
    "g": 44,
    "b": 149
  },
  "hsl": {
    "h": 262.857,
    "s": 54.404,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4067,
    "c": 0.1621,
    "h": 295.8
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#542C95
secondary
#99B964
accent
#DE4AA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542C95

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

Preview Lab → · Contrast checker → · Palette generator →

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