#54146C#54146C

#54146C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.146 H 314.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#54146C
RGBrgb(84, 20, 108)
HSLhsl(284, 69%, 25%)
HSVhsv(284, 81%, 42%)
CMYKcmyk(22.2%, 81.5%, 0%, 57.6%)
CIE-LABlab(21.83, 42.59, -36.92)
CIE-LCHlch(21.83, 56.37, 319.07°)
OKLaboklab(34.52% 0.1028 -0.1043)
OKLCHoklch(34.52% 0.146 314.6)
XYZxyz(6.6126, 3.4681, 14.5055)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54146C #2C6C14
analogous
#28146C #54146C #6C1458
triadic
#54146C #6C5414 #146C54
tetradic
#54146C #6C2814 #2C6C14 #14586C
square
#54146C #6C2814 #2C6C14 #14586C
split-complementary
#54146C #586C14 #146C28
monochromatic
#14051A #2C0A38 #54146C #7C1EA0 #A427D3

Accessibility & contrast

On white

12.40
#54146C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#54146C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54146C
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54146C#FFFFFF#000000##FFFFFF
##54146C1.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#0E366A
Tritanopia (blue-blind)
#522940
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #54146c;
/* rgb */ color: rgb(84, 20, 108);
/* oklch */ color: oklch(34.5% 0.146 314.6);
Tailwind
colors: {
  custom: {
    50: '#885a97',
    500: '#54146c',
    950: '#000000',
  },
}
SCSS
$custom: #54146c;
$custom-light: #885a97;
$custom-dark: #000000;
JSON
{
  "hex": "#54146c",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 108
  },
  "hsl": {
    "h": 283.636,
    "s": 68.75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3452,
    "c": 0.14646,
    "h": 314.6
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#54146C
secondary
#56A339
accent
#EC3C6C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54146C

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

Preview Lab → · Contrast checker → · Palette generator →

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