#54288F#54288F

#54288F is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.6% C 0.160 H 298.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#54288F
RGBrgb(84, 40, 143)
HSLhsl(266, 56%, 36%)
HSVhsv(266, 72%, 56%)
CMYKcmyk(41.3%, 72%, 0%, 43.9%)
CIE-LABlab(27.81, 42.17, -49.39)
CIE-LCHlch(27.81, 64.94, 310.50°)
OKLaboklab(39.63% 0.0758 -0.141)
OKLCHoklch(39.63% 0.16 298.2)
XYZxyz(9.3716, 5.3854, 26.5270)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54288F #638F28
analogous
#282F8F #54288F #87288F
triadic
#54288F #8F5428 #288F54
tetradic
#54288F #8F282F #638F28 #288F87
square
#54288F #8F282F #638F28 #288F87
split-complementary
#54288F #8F8728 #2F8F28
monochromatic
#1C0D2F #381B5F #54288F #7035BF #905FD2

Accessibility & contrast

On white

10.11
#54288F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#54288F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54288F
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54288F#FFFFFF#000000##FFFFFF
##54288F1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004292
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#464158
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #54288f;
/* rgb */ color: rgb(84, 40, 143);
/* oklch */ color: oklch(39.6% 0.160 298.2);
Tailwind
colors: {
  custom: {
    50: '#8a66b1',
    500: '#54288f',
    950: '#000000',
  },
}
SCSS
$custom: #54288f;
$custom-light: #8a66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#54288f",
  "rgb": {
    "r": 84,
    "g": 40,
    "b": 143
  },
  "hsl": {
    "h": 265.631,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.39633,
    "c": 0.16009,
    "h": 298.2
  },
  "luminance": 0.05386
}

Semantic roles & 50–950 ramp

primary
#54288F
secondary
#90B85B
accent
#E0489F
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #54288F

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

Preview Lab → · Contrast checker → · Palette generator →

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