#54124F#54124F

#54124F is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.3% C 0.122 H 331.3°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#54124F
RGBrgb(84, 18, 79)
HSLhsl(305, 65%, 20%)
HSVhsv(305, 79%, 33%)
CMYKcmyk(0%, 78.6%, 6%, 67.1%)
CIE-LABlab(19.57, 37.52, -21.29)
CIE-LCHlch(19.57, 43.14, 330.43°)
OKLaboklab(32.27% 0.1071 -0.0586)
OKLCHoklch(32.27% 0.122 331.3)
XYZxyz(5.2837, 2.8824, 7.6737)
Luminance0.0288 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54124F #125417
analogous
#381254 #54124F #54122E
triadic
#54124F #4F5412 #124F54
tetradic
#54124F #543812 #125417 #122E54
square
#54124F #543812 #125417 #122E54
split-complementary
#54124F #2E5412 #125438
monochromatic
#190518 #220720 #54124F #861D7E #B928AE

Accessibility & contrast

On white

13.32
#54124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#54124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54124F
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54124F#FFFFFF#000000##FFFFFF
##54124F1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2A51
Deuteranopia (green-blind)
#27334D
Tritanopia (blue-blind)
#581A2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #54124f;
/* rgb */ color: rgb(84, 18, 79);
/* oklch */ color: oklch(32.3% 0.122 331.3);
Tailwind
colors: {
  custom: {
    50: '#875880',
    500: '#54124f',
    950: '#000000',
  },
}
SCSS
$custom: #54124f;
$custom-light: #875880;
$custom-dark: #000000;
JSON
{
  "hex": "#54124f",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 304.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.32272,
    "c": 0.12213,
    "h": 331.3
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#54124F
secondary
#358D3C
accent
#E84D40
background
#F8F5F7
surface
#F0E9EE
border
#CBC5C9
text
#0C040A
muted
#7D797C

Preview Lab

Preview with #54124F

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

Preview Lab → · Contrast checker → · Palette generator →

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