#54289A#54289A

#54289A is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.173 H 295.1°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#54289A
RGBrgb(84, 40, 154)
HSLhsl(263, 59%, 38%)
HSVhsv(263, 74%, 60%)
CMYKcmyk(45.5%, 74%, 0%, 39.6%)
CIE-LABlab(28.73, 45.14, -54.63)
CIE-LCHlch(28.73, 70.87, 309.57°)
OKLaboklab(40.58% 0.0734 -0.1564)
OKLCHoklch(40.58% 0.173 295.1)
XYZxyz(10.2461, 5.7352, 31.1328)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54289A #6E9A28
analogous
#28359A #54289A #8D289A
triadic
#54289A #9A5428 #289A54
tetradic
#54289A #9A2835 #6E9A28 #289A8D
square
#54289A #9A2835 #6E9A28 #289A8D
split-complementary
#54289A #9A8D28 #359A28
monochromatic
#1F0F39 #3A1B69 #54289A #6F35CA #9165D7

Accessibility & contrast

On white

9.78
#54289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#54289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54289A
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54289A#FFFFFF#000000##FFFFFF
##54289A1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#004298
Tritanopia (blue-blind)
#40465F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54289a;
/* rgb */ color: rgb(84, 40, 154);
/* oklch */ color: oklch(40.6% 0.173 295.1);
Tailwind
colors: {
  custom: {
    50: '#8b66b9',
    500: '#54289a',
    950: '#000000',
  },
}
SCSS
$custom: #54289a;
$custom-light: #8b66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54289a",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 263.158,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.4058,
    "c": 0.17283,
    "h": 295.1
  },
  "luminance": 0.05735
}

Semantic roles & 50–950 ramp

primary
#54289A
secondary
#99BD61
accent
#E246A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0611
muted
#7D7A80

Preview Lab

Preview with #54289A

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

Preview Lab → · Contrast checker → · Palette generator →

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