#54124B#54124B

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

Color values

HEX#54124B
RGBrgb(84, 18, 75)
HSLhsl(308, 65%, 20%)
HSVhsv(308, 79%, 33%)
CMYKcmyk(0%, 78.6%, 10.7%, 67.1%)
CIE-LABlab(19.33, 36.81, -18.93)
CIE-LCHlch(19.33, 41.40, 332.78°)
OKLaboklab(32.03% 0.1069 -0.0518)
OKLCHoklch(32.03% 0.119 334.1)
XYZxyz(5.1425, 2.8259, 6.9299)
Luminance0.0283 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54124B #12541B
analogous
#3C1254 #54124B #54122A
triadic
#54124B #4B5412 #124B54
tetradic
#54124B #543C12 #12541B #122A54
square
#54124B #543C12 #12541B #122A54
split-complementary
#54124B #2A5412 #12543C
monochromatic
#190516 #22071E #54124B #861D78 #B928A5

Accessibility & contrast

On white

13.42
#54124B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#54124B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54124B
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54124B#FFFFFF#000000##FFFFFF
##54124B1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11294D
Deuteranopia (green-blind)
#293249
Tritanopia (blue-blind)
#58182D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #54124b;
/* rgb */ color: rgb(84, 18, 75);
/* oklch */ color: oklch(32.0% 0.119 334.1);
Tailwind
colors: {
  custom: {
    50: '#87587d',
    500: '#54124b',
    950: '#000000',
  },
}
SCSS
$custom: #54124b;
$custom-light: #87587d;
$custom-dark: #000000;
JSON
{
  "hex": "#54124b",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 75
  },
  "hsl": {
    "h": 308.182,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.32028,
    "c": 0.11877,
    "h": 334.1
  },
  "luminance": 0.02825
}

Semantic roles & 50–950 ramp

primary
#54124B
secondary
#358D41
accent
#E85740
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C0309
muted
#7D787B

Preview Lab

Preview with #54124B

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

Preview Lab → · Contrast checker → · Palette generator →

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