#54147D#54147D

#54147D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.163 H 307.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#54147D
RGBrgb(84, 20, 125)
HSLhsl(277, 72%, 28%)
HSVhsv(277, 84%, 49%)
CMYKcmyk(32.8%, 84%, 0%, 51%)
CIE-LABlab(23.22, 46.41, -45.58)
CIE-LCHlch(23.22, 65.05, 315.52°)
OKLaboklab(35.93% 0.0987 -0.1297)
OKLCHoklch(35.93% 0.163 307.3)
XYZxyz(7.6072, 3.8659, 19.7435)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54147D #3D7D14
analogous
#1F147D #54147D #7D1471
triadic
#54147D #7D5414 #147D54
tetradic
#54147D #7D1F14 #3D7D14 #14717D
square
#54147D #7D1F14 #3D7D14 #14717D
split-complementary
#54147D #717D14 #147D1F
monochromatic
#12041A #310C48 #54147D #771CB2 #992EDE

Accessibility & contrast

On white

11.84
#54147D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#54147D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54147D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54147D#FFFFFF#000000##FFFFFF
##54147D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4D304A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54147d;
/* rgb */ color: rgb(84, 20, 125);
/* oklch */ color: oklch(35.9% 0.163 307.3);
Tailwind
colors: {
  custom: {
    50: '#895ba3',
    500: '#54147d',
    950: '#000000',
  },
}
SCSS
$custom: #54147d;
$custom-light: #895ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#54147d",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 125
  },
  "hsl": {
    "h": 276.571,
    "s": 72.414,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35933,
    "c": 0.163,
    "h": 307.3
  },
  "luminance": 0.03866
}

Semantic roles & 50–950 ramp

primary
#54147D
secondary
#69B23A
accent
#EF3980
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54147D

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

Preview Lab → · Contrast checker → · Palette generator →

#54147D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva