#54185A#54185A

#54185A is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.6% C 0.124 H 324.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#54185A
RGBrgb(84, 24, 90)
HSLhsl(295, 58%, 22%)
HSVhsv(295, 73%, 35%)
CMYKcmyk(6.7%, 73.3%, 0%, 64.7%)
CIE-LABlab(21.12, 37.17, -26.23)
CIE-LCHlch(21.12, 45.49, 324.79°)
OKLaboklab(33.61% 0.1004 -0.073)
OKLCHoklch(33.61% 0.124 324)
XYZxyz(5.8281, 3.2766, 9.9964)
Luminance0.0328 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54185A #1E5A18
analogous
#33185A #54185A #5A183F
triadic
#54185A #5A5418 #185A54
tetradic
#54185A #5A3318 #1E5A18 #183F5A
square
#54185A #5A3318 #1E5A18 #183F5A
split-complementary
#54185A #3F5A18 #185A33
monochromatic
#170618 #270B2A #54185A #81258A #AE32BB

Accessibility & contrast

On white

12.69
#54185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#54185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54185A
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54185A#FFFFFF#000000##FFFFFF
##54185A1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072E5C
Deuteranopia (green-blind)
#233558
Tritanopia (blue-blind)
#562337
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54185a;
/* rgb */ color: rgb(84, 24, 90);
/* oklch */ color: oklch(33.6% 0.124 324.0);
Tailwind
colors: {
  custom: {
    50: '#875b89',
    500: '#54185a',
    950: '#000000',
  },
}
SCSS
$custom: #54185a;
$custom-light: #875b89;
$custom-dark: #000000;
JSON
{
  "hex": "#54185a",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 294.545,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.33608,
    "c": 0.12413,
    "h": 324
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#54185A
secondary
#45913D
accent
#E14755
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #54185A

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

Preview Lab → · Contrast checker → · Palette generator →

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