#54185B#54185B

#54185B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.7% C 0.125 H 323.4°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#54185B
RGBrgb(84, 24, 91)
HSLhsl(294, 58%, 23%)
HSVhsv(294, 74%, 36%)
CMYKcmyk(7.7%, 73.6%, 0%, 64.3%)
CIE-LABlab(21.18, 37.37, -26.79)
CIE-LCHlch(21.18, 45.98, 324.37°)
OKLaboklab(33.68% 0.1004 -0.0746)
OKLCHoklch(33.68% 0.125 323.4)
XYZxyz(5.8709, 3.2938, 10.2220)
Luminance0.0329 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54185B #1F5B18
analogous
#32185B #54185B #5B1841
triadic
#54185B #5B5418 #185B54
tetradic
#54185B #5B3218 #1F5B18 #18415B
square
#54185B #5B3218 #1F5B18 #18415B
split-complementary
#54185B #415B18 #185B32
monochromatic
#160618 #270B2B #54185B #81258B #AD32BC

Accessibility & contrast

On white

12.66
#54185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54185B
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54185B#FFFFFF#000000##FFFFFF
##54185B1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062E5D
Deuteranopia (green-blind)
#233559
Tritanopia (blue-blind)
#552337
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54185b;
/* rgb */ color: rgb(84, 24, 91);
/* oklch */ color: oklch(33.7% 0.125 323.4);
Tailwind
colors: {
  custom: {
    50: '#875b8a',
    500: '#54185b',
    950: '#000000',
  },
}
SCSS
$custom: #54185b;
$custom-light: #875b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#54185b",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 293.731,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.33676,
    "c": 0.12509,
    "h": 323.4
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#54185B
secondary
#46923D
accent
#E14657
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #54185B

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

Preview Lab → · Contrast checker → · Palette generator →

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