#54178D#54178D

#54178D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.176 H 301.3°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#54178D
RGBrgb(84, 23, 141)
HSLhsl(271, 72%, 32%)
HSVhsv(271, 84%, 55%)
CMYKcmyk(40.4%, 83.7%, 0%, 44.7%)
CIE-LABlab(25.02, 49.14, -52.70)
CIE-LCHlch(25.02, 72.05, 313.00°)
OKLaboklab(37.62% 0.0915 -0.1506)
OKLCHoklch(37.62% 0.176 301.3)
XYZxyz(8.7691, 4.4206, 25.5854)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54178D #508D17
analogous
#19178D #54178D #8D178B
triadic
#54178D #8D5417 #178D54
tetradic
#54178D #8D1917 #508D17 #178B8D
square
#54178D #8D1917 #508D17 #178B8D
split-complementary
#54178D #8B8D17 #178D19
monochromatic
#150624 #350E58 #54178D #7320C2 #923FE0

Accessibility & contrast

On white

11.15
#54178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#54178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54178D
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54178D#FFFFFF#000000##FFFFFF
##54178D1.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003B8B
Tritanopia (blue-blind)
#473953
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54178d;
/* rgb */ color: rgb(84, 23, 141);
/* oklch */ color: oklch(37.6% 0.176 301.3);
Tailwind
colors: {
  custom: {
    50: '#8a5daf',
    500: '#54178d',
    950: '#000000',
  },
}
SCSS
$custom: #54178d;
$custom-light: #8a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#54178d",
  "rgb": {
    "r": 84,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 271.017,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.17624,
    "h": 301.3
  },
  "luminance": 0.04421
}

Semantic roles & 50–950 ramp

primary
#54178D
secondary
#7EC040
accent
#EF3991
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0510
muted
#7D797F

Preview Lab

Preview with #54178D

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

Preview Lab → · Contrast checker → · Palette generator →

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