#54145C#54145C

#54145C is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.3% C 0.131 H 323.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#54145C
RGBrgb(84, 20, 92)
HSLhsl(293, 64%, 22%)
HSVhsv(293, 78%, 36%)
CMYKcmyk(8.7%, 78.3%, 0%, 63.9%)
CIE-LABlab(20.67, 39.23, -28.28)
CIE-LCHlch(20.67, 48.36, 324.22°)
OKLaboklab(33.33% 0.1049 -0.079)
OKLCHoklch(33.33% 0.131 323)
XYZxyz(5.8379, 3.1582, 10.4252)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54145C #1C5C14
analogous
#30145C #54145C #5C1440
triadic
#54145C #5C5414 #145C54
tetradic
#54145C #5C3014 #1C5C14 #14405C
square
#54145C #5C3014 #1C5C14 #14405C
split-complementary
#54145C #405C14 #145C30
monochromatic
#170519 #26092A #54145C #821F8E #B02AC1

Accessibility & contrast

On white

12.87
#54145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#54145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54145C
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54145C#FFFFFF#000000##FFFFFF
##54145C1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5E
Deuteranopia (green-blind)
#20345A
Tritanopia (blue-blind)
#552137
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54145c;
/* rgb */ color: rgb(84, 20, 92);
/* oklch */ color: oklch(33.3% 0.131 323.0);
Tailwind
colors: {
  custom: {
    50: '#87598a',
    500: '#54145c',
    950: '#000000',
  },
}
SCSS
$custom: #54145c;
$custom-light: #87598a;
$custom-dark: #000000;
JSON
{
  "hex": "#54145c",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 293.333,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33327,
    "c": 0.13127,
    "h": 323
  },
  "luminance": 0.03158
}

Semantic roles & 50–950 ramp

primary
#54145C
secondary
#429438
accent
#E74153
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54145C

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

Preview Lab → · Contrast checker → · Palette generator →

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