#54184E#54184E

#54184E is a dark, moderate purple. Relative luminance 0.031; OKLCH L 32.9% C 0.113 H 332.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#54184E
RGBrgb(84, 24, 78)
HSLhsl(306, 56%, 21%)
HSVhsv(306, 71%, 33%)
CMYKcmyk(0%, 71.4%, 7.1%, 67.1%)
CIE-LABlab(20.40, 34.84, -19.31)
CIE-LCHlch(20.40, 39.83, 331.00°)
OKLaboklab(32.85% 0.0998 -0.0529)
OKLCHoklch(32.85% 0.113 332.1)
XYZxyz(5.3579, 3.0886, 7.5202)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54184E #18541E
analogous
#3C1854 #54184E #541830
triadic
#54184E #4E5418 #184E54
tetradic
#54184E #543C18 #18541E #183054
square
#54184E #543C18 #18541E #183054
split-complementary
#54184E #305418 #18543C
monochromatic
#180716 #240A22 #54184E #84267A #B333A6

Accessibility & contrast

On white

12.98
#54184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#54184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54184E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54184E#FFFFFF#000000##FFFFFF
##54184E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152C50
Deuteranopia (green-blind)
#2A344C
Tritanopia (blue-blind)
#581E30
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #54184e;
/* rgb */ color: rgb(84, 24, 78);
/* oklch */ color: oklch(32.9% 0.113 332.1);
Tailwind
colors: {
  custom: {
    50: '#865a80',
    500: '#54184e',
    950: '#000000',
  },
}
SCSS
$custom: #54184e;
$custom-light: #865a80;
$custom-dark: #000000;
JSON
{
  "hex": "#54184e",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 306,
    "s": 55.556,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32851,
    "c": 0.11299,
    "h": 332.1
  },
  "luminance": 0.03088
}

Semantic roles & 50–950 ramp

primary
#54184E
secondary
#3D8B45
accent
#DF5849
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #54184E

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

Preview Lab → · Contrast checker → · Palette generator →

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