#54186C#54186C

#54186C is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.9% C 0.142 H 314.2°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#54186C
RGBrgb(84, 24, 108)
HSLhsl(283, 64%, 26%)
HSVhsv(283, 78%, 42%)
CMYKcmyk(22.2%, 77.8%, 0%, 57.6%)
CIE-LABlab(22.38, 41.02, -36.04)
CIE-LCHlch(22.38, 54.60, 318.70°)
OKLaboklab(34.91% 0.0989 -0.1017)
OKLCHoklch(34.91% 0.142 314.2)
XYZxyz(6.6891, 3.6210, 14.5310)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54186C #306C18
analogous
#2A186C #54186C #6C185A
triadic
#54186C #6C5418 #186C54
tetradic
#54186C #6C2A18 #306C18 #185A6C
square
#54186C #6C2A18 #306C18 #185A6C
split-complementary
#54186C #5A6C18 #186C2A
monochromatic
#130619 #2D0D3A #54186C #7B239E #A22ED0

Accessibility & contrast

On white

12.18
#54186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#54186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54186C
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54186C#FFFFFF#000000##FFFFFF
##54186C1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#12376A
Tritanopia (blue-blind)
#522B41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54186c;
/* rgb */ color: rgb(84, 24, 108);
/* oklch */ color: oklch(34.9% 0.142 314.2);
Tailwind
colors: {
  custom: {
    50: '#875c97',
    500: '#54186c',
    950: '#000000',
  },
}
SCSS
$custom: #54186c;
$custom-light: #875c97;
$custom-dark: #000000;
JSON
{
  "hex": "#54186c",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 282.857,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34907,
    "c": 0.14187,
    "h": 314.2
  },
  "luminance": 0.03621
}

Semantic roles & 50–950 ramp

primary
#54186C
secondary
#5BA23E
accent
#E74170
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54186C

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

Preview Lab → · Contrast checker → · Palette generator →

#54186C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva