#54339C#54339C

#54339C is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.162 H 292.6°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#54339C
RGBrgb(84, 51, 156)
HSLhsl(259, 51%, 41%)
HSVhsv(259, 67%, 61%)
CMYKcmyk(46.2%, 67.3%, 0%, 38.8%)
CIE-LABlab(31.00, 39.87, -52.15)
CIE-LCHlch(31.00, 65.65, 307.40°)
OKLaboklab(42.25% 0.062 -0.1492)
OKLCHoklch(42.25% 0.162 292.6)
XYZxyz(10.8391, 6.6524, 32.1590)
Luminance0.0665 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54339C #7B9C33
analogous
#33469C #54339C #88339C
triadic
#54339C #9C5433 #339C54
tetradic
#54339C #9C3346 #7B9C33 #339C88
square
#54339C #9C3346 #7B9C33 #339C88
split-complementary
#54339C #9C8833 #469C33
monochromatic
#221540 #3B246E #54339C #6F49C3 #9477D3

Accessibility & contrast

On white

9.01
#54339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#54339C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54339C
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54339C#FFFFFF#000000##FFFFFF
##54339C1.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9F
Deuteranopia (green-blind)
#00479A
Tritanopia (blue-blind)
#3F4C63
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #54339c;
/* rgb */ color: rgb(84, 51, 156);
/* oklch */ color: oklch(42.2% 0.162 292.6);
Tailwind
colors: {
  custom: {
    50: '#8a6dba',
    500: '#54339c',
    950: '#000000',
  },
}
SCSS
$custom: #54339c;
$custom-light: #8a6dba;
$custom-dark: #000000;
JSON
{
  "hex": "#54339c",
  "rgb": {
    "r": 84,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 258.857,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.42249,
    "c": 0.16158,
    "h": 292.6
  },
  "luminance": 0.06653
}

Semantic roles & 50–950 ramp

primary
#54339C
secondary
#A3BB70
accent
#DA4EAE
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #54339C

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

Preview Lab → · Contrast checker → · Palette generator →

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