#542894#542894

#542894 is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.166 H 296.8°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#542894
RGBrgb(84, 40, 148)
HSLhsl(264, 57%, 37%)
HSVhsv(264, 73%, 58%)
CMYKcmyk(43.2%, 73%, 0%, 42%)
CIE-LABlab(28.22, 43.52, -51.79)
CIE-LCHlch(28.22, 67.65, 310.04°)
OKLaboklab(40.06% 0.0748 -0.1481)
OKLCHoklch(40.06% 0.166 296.8)
XYZxyz(9.7588, 5.5403, 28.5665)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#542894 #689428
analogous
#283294 #542894 #8A2894
triadic
#542894 #945428 #289454
tetradic
#542894 #942832 #689428 #28948A
square
#542894 #942832 #689428 #28948A
split-complementary
#542894 #948A28 #329428
monochromatic
#1D0E34 #391B64 #542894 #6F35C4 #9162D5

Accessibility & contrast

On white

9.96
#542894 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#542894 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #542894
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##542894#FFFFFF#000000##FFFFFF
##5428941.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004397
Deuteranopia (green-blind)
#004192
Tritanopia (blue-blind)
#43435B
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #542894;
/* rgb */ color: rgb(84, 40, 148);
/* oklch */ color: oklch(40.1% 0.166 296.8);
Tailwind
colors: {
  custom: {
    50: '#8a66b4',
    500: '#542894',
    950: '#000000',
  },
}
SCSS
$custom: #542894;
$custom-light: #8a66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#542894",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 148
  },
  "hsl": {
    "h": 264.444,
    "s": 57.447,
    "l": 36.863
  },
  "oklch": {
    "l": 0.40058,
    "c": 0.1659,
    "h": 296.8
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#542894
secondary
#94BA5E
accent
#E147A2
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #542894

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

Preview Lab → · Contrast checker → · Palette generator →

#542894 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva