#542E88#542E88

#542E88 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 39.9% C 0.144 H 299.2°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#542E88
RGBrgb(84, 46, 136)
HSLhsl(265, 49%, 36%)
HSVhsv(265, 66%, 53%)
CMYKcmyk(38.2%, 66.2%, 0%, 46.7%)
CIE-LABlab(28.42, 37.06, -44.04)
CIE-LCHlch(28.42, 57.56, 310.08°)
OKLaboklab(39.9% 0.07 -0.1253)
OKLCHoklch(39.9% 0.144 299.2)
XYZxyz(9.0760, 5.6163, 23.8937)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542E88 #62882E
analogous
#2E3588 #542E88 #812E88
triadic
#542E88 #88542E #2E8854
tetradic
#542E88 #882E35 #62882E #2E8881
square
#542E88 #882E35 #62882E #2E8881
split-complementary
#542E88 #88812E #35882E
monochromatic
#1C0F2D #381F5A #542E88 #703DB6 #9065CB

Accessibility & contrast

On white

9.89
#542E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#542E88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542E88
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542E88#FFFFFF#000000##FFFFFF
##542E881.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#004286
Tritanopia (blue-blind)
#484256
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542e88;
/* rgb */ color: rgb(84, 46, 136);
/* oklch */ color: oklch(39.9% 0.144 299.2);
Tailwind
colors: {
  custom: {
    50: '#8869ab',
    500: '#542e88',
    950: '#000000',
  },
}
SCSS
$custom: #542e88;
$custom-light: #8869ab;
$custom-dark: #000000;
JSON
{
  "hex": "#542e88",
  "rgb": {
    "r": 84,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 265.333,
    "s": 49.451,
    "l": 35.686
  },
  "oklch": {
    "l": 0.39902,
    "c": 0.14358,
    "h": 299.2
  },
  "luminance": 0.05616
}

Semantic roles & 50–950 ramp

primary
#542E88
secondary
#8FB260
accent
#D94F9F
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #542E88

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

Preview Lab → · Contrast checker → · Palette generator →

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