#542E89#542E89

#542E89 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.0% C 0.145 H 298.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#542E89
RGBrgb(84, 46, 137)
HSLhsl(265, 50%, 36%)
HSVhsv(265, 66%, 54%)
CMYKcmyk(38.7%, 66.4%, 0%, 46.3%)
CIE-LABlab(28.50, 37.33, -44.54)
CIE-LCHlch(28.50, 58.12, 309.97°)
OKLaboklab(39.98% 0.0699 -0.1268)
OKLCHoklch(39.98% 0.145 298.9)
XYZxyz(9.1474, 5.6448, 24.2697)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E89 #63892E
analogous
#2E3589 #542E89 #812E89
triadic
#542E89 #89542E #2E8954
tetradic
#542E89 #892E35 #63892E #2E8981
square
#542E89 #892E35 #63892E #2E8981
split-complementary
#542E89 #89812E #35892E
monochromatic
#1C0F2D #381F5B #542E89 #703DB7 #9066CC

Accessibility & contrast

On white

9.86
#542E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#542E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E89
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E89#FFFFFF#000000##FFFFFF
##542E891.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#004287
Tritanopia (blue-blind)
#484357
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542e89;
/* rgb */ color: rgb(84, 46, 137);
/* oklch */ color: oklch(40.0% 0.145 298.9);
Tailwind
colors: {
  custom: {
    50: '#8869ac',
    500: '#542e89',
    950: '#000000',
  },
}
SCSS
$custom: #542e89;
$custom-light: #8869ac;
$custom-dark: #000000;
JSON
{
  "hex": "#542e89",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 265.055,
    "s": 49.727,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3998,
    "c": 0.14481,
    "h": 298.9
  },
  "luminance": 0.05645
}

Semantic roles & 50–950 ramp

primary
#542E89
secondary
#90B260
accent
#D94F9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E89

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

Preview Lab → · Contrast checker → · Palette generator →

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