#54289B#54289B

#54289B is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.174 H 294.9°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#54289B
RGBrgb(84, 40, 155)
HSLhsl(263, 59%, 38%)
HSVhsv(263, 74%, 61%)
CMYKcmyk(45.8%, 74.2%, 0%, 39.2%)
CIE-LABlab(28.82, 45.41, -55.10)
CIE-LCHlch(28.82, 71.40, 309.50°)
OKLaboklab(40.67% 0.0732 -0.1578)
OKLCHoklch(40.67% 0.174 294.9)
XYZxyz(10.3297, 5.7687, 31.5732)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54289B #6F9B28
analogous
#28359B #54289B #8D289B
triadic
#54289B #9B5428 #289B54
tetradic
#54289B #9B2835 #6F9B28 #289B8D
square
#54289B #9B2835 #6F9B28 #289B8D
split-complementary
#54289B #9B8D28 #359B28
monochromatic
#1F0F3A #3A1B6A #54289B #6F35CB #9166D7

Accessibility & contrast

On white

9.75
#54289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54289B
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54289B#FFFFFF#000000##FFFFFF
##54289B1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #54289b;
/* rgb */ color: rgb(84, 40, 155);
/* oklch */ color: oklch(40.7% 0.174 294.9);
Tailwind
colors: {
  custom: {
    50: '#8b66b9',
    500: '#54289b',
    950: '#000000',
  },
}
SCSS
$custom: #54289b;
$custom-light: #8b66b9;
$custom-dark: #000000;
JSON
{
  "hex": "#54289b",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 262.957,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40668,
    "c": 0.17397,
    "h": 294.9
  },
  "luminance": 0.05769
}

Semantic roles & 50–950 ramp

primary
#54289B
secondary
#9ABD61
accent
#E246A6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #54289B

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

Preview Lab → · Contrast checker → · Palette generator →

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