#542E7F#542E7F

#542E7F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.2% C 0.132 H 302.3°. Best body text is #FFFFFF at 10.12:1 contrast (WCAG AA passes).

Color values

HEX#542E7F
RGBrgb(84, 46, 127)
HSLhsl(268, 47%, 34%)
HSVhsv(268, 64%, 50%)
CMYKcmyk(33.9%, 63.8%, 0%, 50.2%)
CIE-LABlab(27.77, 34.62, -39.48)
CIE-LCHlch(27.77, 52.51, 311.25°)
OKLaboklab(39.22% 0.0707 -0.1119)
OKLCHoklch(39.22% 0.132 302.3)
XYZxyz(8.4630, 5.3711, 20.6654)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E7F #597F2E
analogous
#2E317F #542E7F #7D2E7F
triadic
#542E7F #7F542E #2E7F54
tetradic
#542E7F #7F2E31 #597F2E #2E7F7D
square
#542E7F #7F2E31 #597F2E #2E7F7D
split-complementary
#542E7F #7F7D2E #317F2E
monochromatic
#190D25 #361E52 #542E7F #723EAC #9161C6

Accessibility & contrast

On white

10.12
#542E7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#542E7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E7F
10.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E7F#FFFFFF#000000##FFFFFF
##542E7F1.0010.122.0710.12
#FFFFFF10.121.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#15417D
Tritanopia (blue-blind)
#4B3F52
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542e7f;
/* rgb */ color: rgb(84, 46, 127);
/* oklch */ color: oklch(39.2% 0.132 302.3);
Tailwind
colors: {
  custom: {
    50: '#8769a5',
    500: '#542e7f',
    950: '#000000',
  },
}
SCSS
$custom: #542e7f;
$custom-light: #8769a5;
$custom-dark: #000000;
JSON
{
  "hex": "#542e7f",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 127
  },
  "hsl": {
    "h": 268.148,
    "s": 46.821,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39218,
    "c": 0.13237,
    "h": 302.3
  },
  "luminance": 0.05371
}

Semantic roles & 50–950 ramp

primary
#542E7F
secondary
#87AD5C
accent
#D65198
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C060F
muted
#7D7A7F

Preview Lab

Preview with #542E7F

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

Preview Lab → · Contrast checker → · Palette generator →

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