#54155A#54155A

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

Color values

HEX#54155A
RGBrgb(84, 21, 90)
HSLhsl(295, 62%, 22%)
HSVhsv(295, 77%, 35%)
CMYKcmyk(6.7%, 76.7%, 0%, 64.7%)
CIE-LABlab(20.67, 38.43, -26.94)
CIE-LCHlch(20.67, 46.93, 324.97°)
OKLaboklab(33.29% 0.1039 -0.075)
OKLCHoklch(33.29% 0.128 324.2)
XYZxyz(5.7696, 3.1597, 9.9769)
Luminance0.0316 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54155A #1B5A15
analogous
#32155A #54155A #5A153E
triadic
#54155A #5A5415 #155A54
tetradic
#54155A #5A3215 #1B5A15 #153E5A
square
#54155A #5A3215 #1B5A15 #153E5A
split-complementary
#54155A #3E5A15 #155A32
monochromatic
#170619 #260928 #54155A #82218C #B12CBD

Accessibility & contrast

On white

12.87
#54155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#54155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54155A
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54155A#FFFFFF#000000##FFFFFF
##54155A1.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)
#012D5C
Deuteranopia (green-blind)
#223458
Tritanopia (blue-blind)
#562136
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54155a;
/* rgb */ color: rgb(84, 21, 90);
/* oklch */ color: oklch(33.3% 0.128 324.2);
Tailwind
colors: {
  custom: {
    50: '#875a89',
    500: '#54155a',
    950: '#000000',
  },
}
SCSS
$custom: #54155a;
$custom-light: #875a89;
$custom-dark: #000000;
JSON
{
  "hex": "#54155a",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 294.783,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.33288,
    "c": 0.12815,
    "h": 324.2
  },
  "luminance": 0.03159
}

Semantic roles & 50–950 ramp

primary
#54155A
secondary
#419239
accent
#E54351
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #54155A

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

Preview Lab → · Contrast checker → · Palette generator →

#54155A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva