#54165A#54165A

#54165A is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.4% C 0.127 H 324.1°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#54165A
RGBrgb(84, 22, 90)
HSLhsl(295, 61%, 22%)
HSVhsv(295, 76%, 35%)
CMYKcmyk(6.7%, 75.6%, 0%, 64.7%)
CIE-LABlab(20.82, 38.02, -26.71)
CIE-LCHlch(20.82, 46.47, 324.92°)
OKLaboklab(33.39% 0.1028 -0.0744)
OKLCHoklch(33.39% 0.127 324.1)
XYZxyz(5.7884, 3.1972, 9.9831)
Luminance0.0320 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54165A #1C5A16
analogous
#32165A #54165A #5A163E
triadic
#54165A #5A5416 #165A54
tetradic
#54165A #5A3216 #1C5A16 #163E5A
square
#54165A #5A3216 #1C5A16 #163E5A
split-complementary
#54165A #3E5A16 #165A32
monochromatic
#170619 #260A29 #54165A #82228B #B02EBC

Accessibility & contrast

On white

12.81
#54165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#54165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54165A
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54165A#FFFFFF#000000##FFFFFF
##54165A1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032D5C
Deuteranopia (green-blind)
#223558
Tritanopia (blue-blind)
#562236
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #54165a;
/* rgb */ color: rgb(84, 22, 90);
/* oklch */ color: oklch(33.4% 0.127 324.1);
Tailwind
colors: {
  custom: {
    50: '#875a89',
    500: '#54165a',
    950: '#000000',
  },
}
SCSS
$custom: #54165a;
$custom-light: #875a89;
$custom-dark: #000000;
JSON
{
  "hex": "#54165a",
  "rgb": {
    "r": 84,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 294.706,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.33391,
    "c": 0.12685,
    "h": 324.1
  },
  "luminance": 0.03197
}

Semantic roles & 50–950 ramp

primary
#54165A
secondary
#42913B
accent
#E44452
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #54165A

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

Preview Lab → · Contrast checker → · Palette generator →

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