#542E8F#542E8F

#542E8F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.5% C 0.152 H 297.1°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).

Color values

HEX#542E8F
RGBrgb(84, 46, 143)
HSLhsl(264, 51%, 37%)
HSVhsv(264, 68%, 56%)
CMYKcmyk(41.3%, 67.8%, 0%, 43.9%)
CIE-LABlab(28.96, 38.98, -47.51)
CIE-LCHlch(28.96, 61.46, 309.37°)
OKLaboklab(40.46% 0.0692 -0.1355)
OKLCHoklch(40.46% 0.152 297.1)
XYZxyz(9.5898, 5.8218, 26.5997)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E8F #698F2E
analogous
#2E398F #542E8F #852E8F
triadic
#542E8F #8F542E #2E8F54
tetradic
#542E8F #8F2E39 #698F2E #2E8F85
square
#542E8F #8F2E39 #698F2E #2E8F85
split-complementary
#542E8F #8F852E #398F2E
monochromatic
#1E1032 #391F61 #542E8F #6F3DBD #9169CF

Accessibility & contrast

On white

9.70
#542E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#542E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E8F
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E8F#FFFFFF#000000##FFFFFF
##542E8F1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004592
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#45455A
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #542e8f;
/* rgb */ color: rgb(84, 46, 143);
/* oklch */ color: oklch(40.5% 0.152 297.1);
Tailwind
colors: {
  custom: {
    50: '#8969b0',
    500: '#542e8f',
    950: '#000000',
  },
}
SCSS
$custom: #542e8f;
$custom-light: #8969b0;
$custom-dark: #000000;
JSON
{
  "hex": "#542e8f",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 263.505,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.40457,
    "c": 0.1522,
    "h": 297.1
  },
  "luminance": 0.05822
}

Semantic roles & 50–950 ramp

primary
#542E8F
secondary
#95B663
accent
#DB4DA3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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