#543398#543398

#543398 is a dark, vivid violet. Relative luminance 0.065; OKLCH L 41.9% C 0.157 H 293.5°. Best body text is #FFFFFF at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#543398
RGBrgb(84, 51, 152)
HSLhsl(260, 50%, 40%)
HSVhsv(260, 66%, 60%)
CMYKcmyk(44.7%, 66.4%, 0%, 40.4%)
CIE-LABlab(30.69, 38.72, -50.23)
CIE-LCHlch(30.69, 63.42, 307.63°)
OKLaboklab(41.92% 0.0625 -0.1436)
OKLCHoklch(41.92% 0.157 293.5)
XYZxyz(10.5059, 6.5192, 30.4045)
Luminance0.0652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#543398 #779833
analogous
#334498 #543398 #873398
triadic
#543398 #985433 #339854
tetradic
#543398 #983344 #779833 #339887
square
#543398 #983344 #779833 #339887
split-complementary
#543398 #988733 #449833
monochromatic
#21143C #3B246A #543398 #6F47C1 #9375D1

Accessibility & contrast

On white

9.12
#543398 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#543398 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #543398
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##543398#FFFFFF#000000##FFFFFF
##5433981.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#004696
Tritanopia (blue-blind)
#414B61
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #543398;
/* rgb */ color: rgb(84, 51, 152);
/* oklch */ color: oklch(41.9% 0.157 293.5);
Tailwind
colors: {
  custom: {
    50: '#8a6db7',
    500: '#543398',
    950: '#000000',
  },
}
SCSS
$custom: #543398;
$custom-light: #8a6db7;
$custom-dark: #000000;
JSON
{
  "hex": "#543398",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 152
  },
  "hsl": {
    "h": 259.604,
    "s": 49.754,
    "l": 39.804
  },
  "oklch": {
    "l": 0.41923,
    "c": 0.15657,
    "h": 293.5
  },
  "luminance": 0.06519
}

Semantic roles & 50–950 ramp

primary
#543398
secondary
#A0B96E
accent
#D94FAC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #543398

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

Preview Lab → · Contrast checker → · Palette generator →

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