#54288B#54288B

#54288B is a dark, vivid violet. Relative luminance 0.053; OKLCH L 39.3% C 0.155 H 299.5°. Best body text is #FFFFFF at 10.23:1 contrast (WCAG AA passes).

Color values

HEX#54288B
RGBrgb(84, 40, 139)
HSLhsl(267, 55%, 35%)
HSVhsv(267, 71%, 55%)
CMYKcmyk(39.6%, 71.2%, 0%, 45.5%)
CIE-LABlab(27.48, 41.10, -47.44)
CIE-LCHlch(27.48, 62.77, 310.91°)
OKLaboklab(39.3% 0.0765 -0.1353)
OKLCHoklch(39.3% 0.155 299.5)
XYZxyz(9.0740, 5.2664, 24.9595)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54288B #5F8B28
analogous
#282D8B #54288B #86288B
triadic
#54288B #8B5428 #288B54
tetradic
#54288B #8B282D #5F8B28 #288B86
square
#54288B #8B282D #5F8B28 #288B86
split-complementary
#54288B #8B8628 #2D8B28
monochromatic
#1B0D2C #371A5B #54288B #7136BB #905DD0

Accessibility & contrast

On white

10.23
#54288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#54288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54288B
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54288B#FFFFFF#000000##FFFFFF
##54288B1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#474056
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #54288b;
/* rgb */ color: rgb(84, 40, 139);
/* oklch */ color: oklch(39.3% 0.155 299.5);
Tailwind
colors: {
  custom: {
    50: '#8966ae',
    500: '#54288b',
    950: '#000000',
  },
}
SCSS
$custom: #54288b;
$custom-light: #8966ae;
$custom-dark: #000000;
JSON
{
  "hex": "#54288b",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 266.667,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.39299,
    "c": 0.15541,
    "h": 299.5
  },
  "luminance": 0.05266
}

Semantic roles & 50–950 ramp

primary
#54288B
secondary
#8DB659
accent
#DF499C
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0610
muted
#7D7A7F

Preview Lab

Preview with #54288B

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

Preview Lab → · Contrast checker → · Palette generator →

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