#54289F#54289F

#54289F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 41.0% C 0.179 H 293.9°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#54289F
RGBrgb(84, 40, 159)
HSLhsl(262, 60%, 39%)
HSVhsv(262, 75%, 62%)
CMYKcmyk(47.2%, 74.8%, 0%, 37.6%)
CIE-LABlab(29.17, 46.50, -56.96)
CIE-LCHlch(29.17, 73.53, 309.23°)
OKLaboklab(41.02% 0.0723 -0.1633)
OKLCHoklch(41.02% 0.179 293.9)
XYZxyz(10.6712, 5.9053, 33.3717)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54289F #739F28
analogous
#28389F #54289F #90289F
triadic
#54289F #9F5428 #289F54
tetradic
#54289F #9F2838 #739F28 #289F90
square
#54289F #9F2838 #739F28 #289F90
split-complementary
#54289F #9F9028 #389F28
monochromatic
#200F3D #3A1C6E #54289F #6F37CD #9268D9

Accessibility & contrast

On white

9.63
#54289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#54289F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54289F
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54289F#FFFFFF#000000##FFFFFF
##54289F1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00439D
Tritanopia (blue-blind)
#3E4861
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #54289f;
/* rgb */ color: rgb(84, 40, 159);
/* oklch */ color: oklch(41.0% 0.179 293.9);
Tailwind
colors: {
  custom: {
    50: '#8c66bc',
    500: '#54289f',
    950: '#000000',
  },
}
SCSS
$custom: #54289f;
$custom-light: #8c66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#54289f",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 262.185,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.41024,
    "c": 0.17856,
    "h": 293.9
  },
  "luminance": 0.05906
}

Semantic roles & 50–950 ramp

primary
#54289F
secondary
#9DBF64
accent
#E345A8
background
#F9F6FB
surface
#F1EBF7
border
#CBC6D0
text
#0D0612
muted
#7E7A81

Preview Lab

Preview with #54289F

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

Preview Lab → · Contrast checker → · Palette generator →

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