#54186D#54186D

#54186D is a dark, vivid purple. Relative luminance 0.036; OKLCH L 35.0% C 0.143 H 313.7°. Best body text is #FFFFFF at 12.15:1 contrast (WCAG AA passes).

Color values

HEX#54186D
RGBrgb(84, 24, 109)
HSLhsl(282, 64%, 26%)
HSVhsv(282, 78%, 43%)
CMYKcmyk(22.9%, 78%, 0%, 57.3%)
CIE-LABlab(22.45, 41.24, -36.57)
CIE-LCHlch(22.45, 55.12, 318.44°)
OKLaboklab(34.99% 0.0988 -0.1033)
OKLCHoklch(34.99% 0.143 313.7)
XYZxyz(6.7426, 3.6424, 14.8129)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54186D #316D18
analogous
#29186D #54186D #6D185B
triadic
#54186D #6D5418 #186D54
tetradic
#54186D #6D2918 #316D18 #185B6D
square
#54186D #6D2918 #316D18 #185B6D
split-complementary
#54186D #5B6D18 #186D29
monochromatic
#130619 #2D0D3B #54186D #7B239F #A12ED1

Accessibility & contrast

On white

12.15
#54186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#54186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54186D
12.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54186D#FFFFFF#000000##FFFFFF
##54186D1.0012.151.7312.15
#FFFFFF12.151.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336F
Deuteranopia (green-blind)
#11376B
Tritanopia (blue-blind)
#512B41
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54186d;
/* rgb */ color: rgb(84, 24, 109);
/* oklch */ color: oklch(35.0% 0.143 313.7);
Tailwind
colors: {
  custom: {
    50: '#885c97',
    500: '#54186d',
    950: '#000000',
  },
}
SCSS
$custom: #54186d;
$custom-light: #885c97;
$custom-dark: #000000;
JSON
{
  "hex": "#54186d",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 282.353,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34985,
    "c": 0.14289,
    "h": 313.7
  },
  "luminance": 0.03642
}

Semantic roles & 50–950 ramp

primary
#54186D
secondary
#5CA33E
accent
#E74172
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54186D

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

Preview Lab → · Contrast checker → · Palette generator →

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