#54186B#54186B

#54186B is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.141 H 314.7°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#54186B
RGBrgb(84, 24, 107)
HSLhsl(283, 63%, 26%)
HSVhsv(283, 78%, 42%)
CMYKcmyk(21.5%, 77.6%, 0%, 58%)
CIE-LABlab(22.30, 40.79, -35.51)
CIE-LCHlch(22.30, 54.08, 318.96°)
OKLaboklab(34.83% 0.0991 -0.1002)
OKLCHoklch(34.83% 0.141 314.7)
XYZxyz(6.6362, 3.5999, 14.2523)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54186B #2F6B18
analogous
#2A186B #54186B #6B1858
triadic
#54186B #6B5418 #186B54
tetradic
#54186B #6B2A18 #2F6B18 #18586B
square
#54186B #6B2A18 #2F6B18 #18586B
split-complementary
#54186B #586B18 #186B2A
monochromatic
#140619 #2D0D39 #54186B #7B239D #A22ECF

Accessibility & contrast

On white

12.21
#54186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#54186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54186B
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54186B#FFFFFF#000000##FFFFFF
##54186B1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#143769
Tritanopia (blue-blind)
#522A40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54186b;
/* rgb */ color: rgb(84, 24, 107);
/* oklch */ color: oklch(34.8% 0.141 314.7);
Tailwind
colors: {
  custom: {
    50: '#875c96',
    500: '#54186b',
    950: '#000000',
  },
}
SCSS
$custom: #54186b;
$custom-light: #875c96;
$custom-dark: #000000;
JSON
{
  "hex": "#54186b",
  "rgb": {
    "r": 84,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 283.373,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34831,
    "c": 0.14087,
    "h": 314.7
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#54186B
secondary
#59A13E
accent
#E6416F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54186B

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

Preview Lab → · Contrast checker → · Palette generator →

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