#542E71#542E71

#542E71 is a dark, moderate violet. Relative luminance 0.050; OKLCH L 38.2% C 0.115 H 308.1°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#542E71
RGBrgb(84, 46, 113)
HSLhsl(274, 42%, 31%)
HSVhsv(274, 59%, 44%)
CMYKcmyk(25.7%, 59.3%, 0%, 55.7%)
CIE-LABlab(26.82, 30.95, -32.12)
CIE-LCHlch(26.82, 44.61, 313.93°)
OKLaboklab(38.23% 0.0708 -0.0904)
OKLCHoklch(38.23% 0.115 308.1)
XYZxyz(7.6132, 5.0312, 16.1896)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E71 #4B712E
analogous
#322E71 #542E71 #712E6C
triadic
#542E71 #71542E #2E7154
tetradic
#542E71 #71322E #4B712E #2E6C71
square
#542E71 #71322E #4B712E #2E6C71
split-complementary
#542E71 #6C712E #2E7132
monochromatic
#130B1A #341C46 #542E71 #74409C #935DBD

Accessibility & contrast

On white

10.47
#542E71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#542E71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E71
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E71#FFFFFF#000000##FFFFFF
##542E711.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E73
Deuteranopia (green-blind)
#25406F
Tritanopia (blue-blind)
#503A4B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #542e71;
/* rgb */ color: rgb(84, 46, 113);
/* oklch */ color: oklch(38.2% 0.115 308.1);
Tailwind
colors: {
  custom: {
    50: '#86689a',
    500: '#542e71',
    950: '#000000',
  },
}
SCSS
$custom: #542e71;
$custom-light: #86689a;
$custom-dark: #000000;
JSON
{
  "hex": "#542e71",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 113
  },
  "hsl": {
    "h": 274.03,
    "s": 42.138,
    "l": 31.176
  },
  "oklch": {
    "l": 0.38227,
    "c": 0.11478,
    "h": 308.1
  },
  "luminance": 0.05031
}

Semantic roles & 50–950 ramp

primary
#542E71
secondary
#78A258
accent
#D2568C
background
#F8F6F9
surface
#F0EBF2
border
#CBC6CC
text
#0B060E
muted
#7C7A7E

Preview Lab

Preview with #542E71

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

Preview Lab → · Contrast checker → · Palette generator →

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