#543798#543798

#543798 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.5% C 0.151 H 292.6°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#543798
RGBrgb(84, 55, 152)
HSLhsl(258, 47%, 41%)
HSVhsv(258, 64%, 60%)
CMYKcmyk(44.7%, 63.8%, 0%, 40.4%)
CIE-LABlab(31.54, 36.42, -48.84)
CIE-LCHlch(31.54, 60.93, 306.71°)
OKLaboklab(42.54% 0.058 -0.1395)
OKLCHoklch(42.54% 0.151 292.6)
XYZxyz(10.6883, 6.8839, 30.4652)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#543798 #7B9837
analogous
#374A98 #543798 #843798
triadic
#543798 #985437 #379854
tetradic
#543798 #98374A #7B9837 #379884
square
#543798 #98374A #7B9837 #379884
split-complementary
#543798 #988437 #4A9837
monochromatic
#22163E #3B276B #543798 #6F4DBF #947ACF

Accessibility & contrast

On white

8.84
#543798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#543798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #543798
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##543798#FFFFFF#000000##FFFFFF
##5437981.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9B
Deuteranopia (green-blind)
#004896
Tritanopia (blue-blind)
#414D62
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #543798;
/* rgb */ color: rgb(84, 55, 152);
/* oklch */ color: oklch(42.5% 0.151 292.6);
Tailwind
colors: {
  custom: {
    50: '#8a6fb7',
    500: '#543798',
    950: '#000000',
  },
}
SCSS
$custom: #543798;
$custom-light: #8a6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#543798",
  "rgb": {
    "r": 84,
    "g": 55,
    "b": 152
  },
  "hsl": {
    "h": 257.938,
    "s": 46.86,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42542,
    "c": 0.15105,
    "h": 292.6
  },
  "luminance": 0.06884
}

Semantic roles & 50–950 ramp

primary
#543798
secondary
#A3B873
accent
#D651AF
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #543798

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

Preview Lab → · Contrast checker → · Palette generator →

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