#54339A#54339A

#54339A is a dark, vivid violet. Relative luminance 0.066; OKLCH L 42.1% C 0.159 H 293.0°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#54339A
RGBrgb(84, 51, 154)
HSLhsl(259, 50%, 40%)
HSVhsv(259, 67%, 60%)
CMYKcmyk(45.5%, 66.9%, 0%, 39.6%)
CIE-LABlab(30.84, 39.30, -51.19)
CIE-LCHlch(30.84, 64.54, 307.51°)
OKLaboklab(42.09% 0.0623 -0.1464)
OKLCHoklch(42.09% 0.159 293)
XYZxyz(10.6711, 6.5852, 31.2744)
Luminance0.0659 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54339A #799A33
analogous
#33469A #54339A #87339A
triadic
#54339A #9A5433 #339A54
tetradic
#54339A #9A3346 #799A33 #339A87
square
#54339A #9A3346 #799A33 #339A87
split-complementary
#54339A #9A8733 #469A33
monochromatic
#22153E #3B246C #54339A #6F48C2 #9376D2

Accessibility & contrast

On white

9.06
#54339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#54339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54339A
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54339A#FFFFFF#000000##FFFFFF
##54339A1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9D
Deuteranopia (green-blind)
#004798
Tritanopia (blue-blind)
#404C62
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #54339a;
/* rgb */ color: rgb(84, 51, 154);
/* oklch */ color: oklch(42.1% 0.159 293.0);
Tailwind
colors: {
  custom: {
    50: '#8a6db9',
    500: '#54339a',
    950: '#000000',
  },
}
SCSS
$custom: #54339a;
$custom-light: #8a6db9;
$custom-dark: #000000;
JSON
{
  "hex": "#54339a",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 259.223,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42085,
    "c": 0.15908,
    "h": 293
  },
  "luminance": 0.06586
}

Semantic roles & 50–950 ramp

primary
#54339A
secondary
#A2BA6F
accent
#DA4EAD
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #54339A

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

Preview Lab → · Contrast checker → · Palette generator →

#54339A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva