#542E83#542E83

#542E83 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 39.5% C 0.137 H 300.8°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#542E83
RGBrgb(84, 46, 131)
HSLhsl(267, 48%, 35%)
HSVhsv(267, 65%, 51%)
CMYKcmyk(35.9%, 64.9%, 0%, 48.6%)
CIE-LABlab(28.05, 35.70, -41.52)
CIE-LCHlch(28.05, 54.76, 310.69°)
OKLaboklab(39.52% 0.0704 -0.1179)
OKLCHoklch(39.52% 0.137 300.8)
XYZxyz(8.7289, 5.4774, 22.0657)
Luminance0.0548 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E83 #5D832E
analogous
#2E3283 #542E83 #7F2E83
triadic
#542E83 #83542E #2E8354
tetradic
#542E83 #832E32 #5D832E #2E837F
square
#542E83 #832E32 #5D832E #2E837F
split-complementary
#542E83 #837F2E #32832E
monochromatic
#1A0E28 #371E56 #542E83 #713EB0 #9063C8

Accessibility & contrast

On white

10.02
#542E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#542E83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E83
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E83#FFFFFF#000000##FFFFFF
##542E831.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#0E4281
Tritanopia (blue-blind)
#4A4054
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #542e83;
/* rgb */ color: rgb(84, 46, 131);
/* oklch */ color: oklch(39.5% 0.137 300.8);
Tailwind
colors: {
  custom: {
    50: '#8869a8',
    500: '#542e83',
    950: '#000000',
  },
}
SCSS
$custom: #542e83;
$custom-light: #8869a8;
$custom-dark: #000000;
JSON
{
  "hex": "#542e83",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 131
  },
  "hsl": {
    "h": 266.824,
    "s": 48.023,
    "l": 34.706
  },
  "oklch": {
    "l": 0.39518,
    "c": 0.13737,
    "h": 300.8
  },
  "luminance": 0.05478
}

Semantic roles & 50–950 ramp

primary
#542E83
secondary
#8BAF5E
accent
#D8509B
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E83

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

Preview Lab → · Contrast checker → · Palette generator →

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