#54289C#54289C

#54289C is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.8% C 0.175 H 294.6°. Best body text is #FFFFFF at 9.72:1 contrast (WCAG AA passes).

Color values

HEX#54289C
RGBrgb(84, 40, 156)
HSLhsl(263, 59%, 38%)
HSVhsv(263, 74%, 61%)
CMYKcmyk(46.2%, 74.4%, 0%, 38.8%)
CIE-LABlab(28.91, 45.69, -55.57)
CIE-LCHlch(28.91, 71.94, 309.43°)
OKLaboklab(40.76% 0.073 -0.1592)
OKLCHoklch(40.76% 0.175 294.6)
XYZxyz(10.4141, 5.8024, 32.0173)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54289C #709C28
analogous
#28369C #54289C #8E289C
triadic
#54289C #9C5428 #289C54
tetradic
#54289C #9C2836 #709C28 #289C8E
square
#54289C #9C2836 #709C28 #289C8E
split-complementary
#54289C #9C8E28 #369C28
monochromatic
#200F3B #3A1C6B #54289C #6F36CB #9267D8

Accessibility & contrast

On white

9.72
#54289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#54289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54289C
9.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54289C#FFFFFF#000000##FFFFFF
##54289C1.009.722.169.72
#FFFFFF9.721.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#3F4660
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #54289c;
/* rgb */ color: rgb(84, 40, 156);
/* oklch */ color: oklch(40.8% 0.175 294.6);
Tailwind
colors: {
  custom: {
    50: '#8b66ba',
    500: '#54289c',
    950: '#000000',
  },
}
SCSS
$custom: #54289c;
$custom-light: #8b66ba;
$custom-dark: #000000;
JSON
{
  "hex": "#54289c",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 262.759,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40756,
    "c": 0.17513,
    "h": 294.6
  },
  "luminance": 0.05803
}

Semantic roles & 50–950 ramp

primary
#54289C
secondary
#9BBE62
accent
#E245A7
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54289C

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

Preview Lab → · Contrast checker → · Palette generator →

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