#54288D#54288D

#54288D is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.5% C 0.158 H 298.8°. Best body text is #FFFFFF at 10.17:1 contrast (WCAG AA passes).

Color values

HEX#54288D
RGBrgb(84, 40, 141)
HSLhsl(266, 56%, 35%)
HSVhsv(266, 72%, 55%)
CMYKcmyk(40.4%, 71.6%, 0%, 44.7%)
CIE-LABlab(27.64, 41.64, -48.41)
CIE-LCHlch(27.64, 63.86, 310.70°)
OKLaboklab(39.47% 0.0761 -0.1382)
OKLCHoklch(39.47% 0.158 298.8)
XYZxyz(9.2215, 5.3254, 25.7362)
Luminance0.0532 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54288D #618D28
analogous
#282E8D #54288D #86288D
triadic
#54288D #8D5428 #288D54
tetradic
#54288D #8D282E #618D28 #288D86
square
#54288D #8D282E #618D28 #288D86
split-complementary
#54288D #8D8628 #2E8D28
monochromatic
#1B0D2E #381A5D #54288D #7036BD #905ED1

Accessibility & contrast

On white

10.17
#54288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#54288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54288D
10.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54288D#FFFFFF#000000##FFFFFF
##54288D1.0010.172.0710.17
#FFFFFF10.171.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#464157
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54288d;
/* rgb */ color: rgb(84, 40, 141);
/* oklch */ color: oklch(39.5% 0.158 298.8);
Tailwind
colors: {
  custom: {
    50: '#8966af',
    500: '#54288d',
    950: '#000000',
  },
}
SCSS
$custom: #54288d;
$custom-light: #8966af;
$custom-dark: #000000;
JSON
{
  "hex": "#54288d",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 266.139,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.39465,
    "c": 0.15775,
    "h": 298.8
  },
  "luminance": 0.05325
}

Semantic roles & 50–950 ramp

primary
#54288D
secondary
#8EB75A
accent
#DF499E
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54288D

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

Preview Lab → · Contrast checker → · Palette generator →

#54288D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva