#54186E#54186E

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

Color values

HEX#54186E
RGBrgb(84, 24, 110)
HSLhsl(282, 64%, 26%)
HSVhsv(282, 78%, 43%)
CMYKcmyk(23.6%, 78.2%, 0%, 56.9%)
CIE-LABlab(22.53, 41.46, -37.09)
CIE-LCHlch(22.53, 55.63, 318.19°)
OKLaboklab(35.06% 0.0986 -0.1048)
OKLCHoklch(35.06% 0.144 313.3)
XYZxyz(6.7968, 3.6641, 15.0980)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54186E #326E18
analogous
#29186E #54186E #6E185D
triadic
#54186E #6E5418 #186E54
tetradic
#54186E #6E2918 #326E18 #185D6E
square
#54186E #6E2918 #326E18 #185D6E
split-complementary
#54186E #5D6E18 #186E29
monochromatic
#130519 #2E0D3C #54186E #7A23A0 #A02FD2

Accessibility & contrast

On white

12.12
#54186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54186E
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54186E#FFFFFF#000000##FFFFFF
##54186E1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#0F376C
Tritanopia (blue-blind)
#512B42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #54186e;
/* rgb */ color: rgb(84, 24, 110);
/* oklch */ color: oklch(35.1% 0.144 313.3);
Tailwind
colors: {
  custom: {
    50: '#885c98',
    500: '#54186e',
    950: '#000000',
  },
}
SCSS
$custom: #54186e;
$custom-light: #885c98;
$custom-dark: #000000;
JSON
{
  "hex": "#54186e",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 281.86,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.35063,
    "c": 0.14389,
    "h": 313.3
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#54186E
secondary
#5DA43E
accent
#E74173
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54186E

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

Preview Lab → · Contrast checker → · Palette generator →

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