#54146E#54146E

#54146E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.7% C 0.148 H 313.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#54146E
RGBrgb(84, 20, 110)
HSLhsl(283, 69%, 25%)
HSVhsv(283, 82%, 43%)
CMYKcmyk(23.6%, 81.8%, 0%, 56.9%)
CIE-LABlab(21.98, 43.03, -37.97)
CIE-LCHlch(21.98, 57.39, 318.57°)
OKLaboklab(34.68% 0.1025 -0.1073)
OKLCHoklch(34.68% 0.148 313.7)
XYZxyz(6.7203, 3.5111, 15.0725)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54146E #2E6E14
analogous
#27146E #54146E #6E145B
triadic
#54146E #6E5414 #146E54
tetradic
#54146E #6E2714 #2E6E14 #145B6E
square
#54146E #6E2714 #2E6E14 #145B6E
split-complementary
#54146E #5B6E14 #146E27
monochromatic
#14051A #2C0B3A #54146E #7C1DA2 #A327D6

Accessibility & contrast

On white

12.34
#54146E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#54146E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54146E
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54146E#FFFFFF#000000##FFFFFF
##54146E1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#0A366C
Tritanopia (blue-blind)
#512941
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54146e;
/* rgb */ color: rgb(84, 20, 110);
/* oklch */ color: oklch(34.7% 0.148 313.7);
Tailwind
colors: {
  custom: {
    50: '#885a98',
    500: '#54146e',
    950: '#000000',
  },
}
SCSS
$custom: #54146e;
$custom-light: #885a98;
$custom-dark: #000000;
JSON
{
  "hex": "#54146e",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 110
  },
  "hsl": {
    "h": 282.667,
    "s": 69.231,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34679,
    "c": 0.14839,
    "h": 313.7
  },
  "luminance": 0.03511
}

Semantic roles & 50–950 ramp

primary
#54146E
secondary
#58A539
accent
#EC3C6F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54146E

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

Preview Lab → · Contrast checker → · Palette generator →

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