#54124A#54124A

#54124A is a dark, moderate purple. Relative luminance 0.028; OKLCH L 32.0% C 0.118 H 334.9°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#54124A
RGBrgb(84, 18, 74)
HSLhsl(309, 65%, 20%)
HSVhsv(309, 79%, 33%)
CMYKcmyk(0%, 78.6%, 11.9%, 67.1%)
CIE-LABlab(19.28, 36.64, -18.34)
CIE-LCHlch(19.28, 40.98, 333.41°)
OKLaboklab(31.97% 0.1068 -0.0501)
OKLCHoklch(31.97% 0.118 334.9)
XYZxyz(5.1086, 2.8123, 6.7510)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54124A #12541C
analogous
#3D1254 #54124A #541229
triadic
#54124A #4A5412 #124A54
tetradic
#54124A #543D12 #12541C #122954
square
#54124A #543D12 #12541C #122954
split-complementary
#54124A #295412 #12543D
monochromatic
#190516 #22071E #54124A #861D76 #B928A3

Accessibility & contrast

On white

13.44
#54124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#54124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54124A
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54124A#FFFFFF#000000##FFFFFF
##54124A1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12294C
Deuteranopia (green-blind)
#293248
Tritanopia (blue-blind)
#58172C
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #54124a;
/* rgb */ color: rgb(84, 18, 74);
/* oklch */ color: oklch(32.0% 0.118 334.9);
Tailwind
colors: {
  custom: {
    50: '#87577c',
    500: '#54124a',
    950: '#000000',
  },
}
SCSS
$custom: #54124a;
$custom-light: #87577c;
$custom-dark: #000000;
JSON
{
  "hex": "#54124a",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 309.091,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.31968,
    "c": 0.11796,
    "h": 334.9
  },
  "luminance": 0.02812
}

Semantic roles & 50–950 ramp

primary
#54124A
secondary
#358D42
accent
#E85A40
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #54124A

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

Preview Lab → · Contrast checker → · Palette generator →

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