#543796#543796

#543796 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.148 H 293.1°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#543796
RGBrgb(84, 55, 150)
HSLhsl(258, 46%, 40%)
HSVhsv(258, 63%, 59%)
CMYKcmyk(44%, 63.3%, 0%, 41.2%)
CIE-LABlab(31.39, 35.84, -47.87)
CIE-LCHlch(31.39, 59.80, 306.82°)
OKLaboklab(42.39% 0.0581 -0.1366)
OKLCHoklch(42.39% 0.148 293.1)
XYZxyz(10.5259, 6.8189, 29.6098)
Luminance0.0682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#543796 #799637
analogous
#374996 #543796 #833796
triadic
#543796 #965437 #379654
tetradic
#543796 #963749 #799637 #379683
square
#543796 #963749 #799637 #379683
split-complementary
#543796 #968337 #499637
monochromatic
#22163C #3B2769 #543796 #6F4DBE #9379CE

Accessibility & contrast

On white

8.88
#543796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#543796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #543796
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##543796#FFFFFF#000000##FFFFFF
##5437961.008.882.368.88
#FFFFFF8.881.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B99
Deuteranopia (green-blind)
#004894
Tritanopia (blue-blind)
#424D61
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #543796;
/* rgb */ color: rgb(84, 55, 150);
/* oklch */ color: oklch(42.4% 0.148 293.1);
Tailwind
colors: {
  custom: {
    50: '#896fb6',
    500: '#543796',
    950: '#000000',
  },
}
SCSS
$custom: #543796;
$custom-light: #896fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#543796",
  "rgb": {
    "r": 84,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 258.316,
    "s": 46.341,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42385,
    "c": 0.14847,
    "h": 293.1
  },
  "luminance": 0.06819
}

Semantic roles & 50–950 ramp

primary
#543796
secondary
#A2B772
accent
#D652AE
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #543796

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

Preview Lab → · Contrast checker → · Palette generator →

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