#54116C#54116C

#54116C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.150 H 314.9°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#54116C
RGBrgb(84, 17, 108)
HSLhsl(284, 73%, 25%)
HSVhsv(284, 84%, 42%)
CMYKcmyk(22.2%, 84.3%, 0%, 57.6%)
CIE-LABlab(21.46, 43.64, -37.51)
CIE-LCHlch(21.46, 57.55, 319.32°)
OKLaboklab(34.26% 0.1055 -0.106)
OKLCHoklch(34.26% 0.15 314.9)
XYZxyz(6.5629, 3.3687, 14.4890)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54116C #296C11
analogous
#27116C #54116C #6C1157
triadic
#54116C #6C5411 #116C54
tetradic
#54116C #6C2711 #296C11 #11576C
square
#54116C #6C2711 #296C11 #11576C
split-complementary
#54116C #576C11 #116C27
monochromatic
#15041A #2B0937 #54116C #7D19A1 #A622D6

Accessibility & contrast

On white

12.55
#54116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#54116C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54116C
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54116C#FFFFFF#000000##FFFFFF
##54116C1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#0B356A
Tritanopia (blue-blind)
#52273F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54116c;
/* rgb */ color: rgb(84, 17, 108);
/* oklch */ color: oklch(34.3% 0.150 314.9);
Tailwind
colors: {
  custom: {
    50: '#885997',
    500: '#54116c',
    950: '#000000',
  },
}
SCSS
$custom: #54116c;
$custom-light: #885997;
$custom-dark: #000000;
JSON
{
  "hex": "#54116c",
  "rgb": {
    "r": 84,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 284.176,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34264,
    "c": 0.14953,
    "h": 314.9
  },
  "luminance": 0.03368
}

Semantic roles & 50–950 ramp

primary
#54116C
secondary
#52A435
accent
#EF3869
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54116C

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

Preview Lab → · Contrast checker → · Palette generator →

#54116C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva