#54186F#54186F

#54186F is a dark, vivid purple. Relative luminance 0.037; OKLCH L 35.1% C 0.145 H 312.8°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#54186F
RGBrgb(84, 24, 111)
HSLhsl(281, 64%, 26%)
HSVhsv(281, 78%, 44%)
CMYKcmyk(24.3%, 78.4%, 0%, 56.5%)
CIE-LABlab(22.61, 41.69, -37.61)
CIE-LCHlch(22.61, 56.15, 317.94°)
OKLaboklab(35.14% 0.0984 -0.1063)
OKLCHoklch(35.14% 0.145 312.8)
XYZxyz(6.8515, 3.6860, 15.3864)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54186F #336F18
analogous
#29186F #54186F #6F185F
triadic
#54186F #6F5418 #186F54
tetradic
#54186F #6F2918 #336F18 #185F6F
square
#54186F #6F2918 #336F18 #185F6F
split-complementary
#54186F #5F6F18 #186F29
monochromatic
#130519 #2E0D3D #54186F #7A23A1 #A02FD2

Accessibility & contrast

On white

12.09
#54186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#54186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54186F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54186F#FFFFFF#000000##FFFFFF
##54186F1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#0D376D
Tritanopia (blue-blind)
#512C42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54186f;
/* rgb */ color: rgb(84, 24, 111);
/* oklch */ color: oklch(35.1% 0.145 312.8);
Tailwind
colors: {
  custom: {
    50: '#885c99',
    500: '#54186f',
    950: '#000000',
  },
}
SCSS
$custom: #54186f;
$custom-light: #885c99;
$custom-dark: #000000;
JSON
{
  "hex": "#54186f",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 281.379,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.35141,
    "c": 0.14489,
    "h": 312.8
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#54186F
secondary
#5EA53E
accent
#E74074
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54186F

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

Preview Lab → · Contrast checker → · Palette generator →

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