#54186A#54186A

#54186A is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.140 H 315.2°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#54186A
RGBrgb(84, 24, 106)
HSLhsl(284, 63%, 25%)
HSVhsv(284, 77%, 42%)
CMYKcmyk(20.8%, 77.4%, 0%, 58.4%)
CIE-LABlab(22.23, 40.57, -34.98)
CIE-LCHlch(22.23, 53.57, 319.23°)
OKLaboklab(34.75% 0.0992 -0.0986)
OKLCHoklch(34.75% 0.14 315.2)
XYZxyz(6.5839, 3.5789, 13.9769)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54186A #2E6A18
analogous
#2B186A #54186A #6A1857
triadic
#54186A #6A5418 #186A54
tetradic
#54186A #6A2B18 #2E6A18 #18576A
square
#54186A #6A2B18 #2E6A18 #18576A
split-complementary
#54186A #576A18 #186A2B
monochromatic
#140619 #2C0D38 #54186A #7C239C #A32FCE

Accessibility & contrast

On white

12.24
#54186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54186A
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54186A#FFFFFF#000000##FFFFFF
##54186A1.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#153768
Tritanopia (blue-blind)
#522A40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54186a;
/* rgb */ color: rgb(84, 24, 106);
/* oklch */ color: oklch(34.8% 0.140 315.2);
Tailwind
colors: {
  custom: {
    50: '#875c95',
    500: '#54186a',
    950: '#000000',
  },
}
SCSS
$custom: #54186a;
$custom-light: #875c95;
$custom-dark: #000000;
JSON
{
  "hex": "#54186a",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 283.902,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34754,
    "c": 0.13987,
    "h": 315.2
  },
  "luminance": 0.03579
}

Semantic roles & 50–950 ramp

primary
#54186A
secondary
#58A03E
accent
#E6426E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54186A

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

Preview Lab → · Contrast checker → · Palette generator →

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