#54147C#54147C

#54147C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.162 H 307.7°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).

Color values

HEX#54147C
RGBrgb(84, 20, 124)
HSLhsl(277, 72%, 28%)
HSVhsv(277, 84%, 49%)
CMYKcmyk(32.3%, 83.9%, 0%, 51.4%)
CIE-LABlab(23.14, 46.18, -45.08)
CIE-LCHlch(23.14, 64.54, 315.69°)
OKLaboklab(35.85% 0.099 -0.1282)
OKLCHoklch(35.85% 0.162 307.7)
XYZxyz(7.5436, 3.8405, 19.4088)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54147C #3C7C14
analogous
#20147C #54147C #7C1470
triadic
#54147C #7C5414 #147C54
tetradic
#54147C #7C2014 #3C7C14 #14707C
square
#54147C #7C2014 #3C7C14 #14707C
split-complementary
#54147C #707C14 #147C20
monochromatic
#12041A #300B47 #54147C #781DB1 #992DDD

Accessibility & contrast

On white

11.88
#54147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54147C
11.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54147C#FFFFFF#000000##FFFFFF
##54147C1.0011.881.7711.88
#FFFFFF11.881.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#4D3049
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54147c;
/* rgb */ color: rgb(84, 20, 124);
/* oklch */ color: oklch(35.8% 0.162 307.7);
Tailwind
colors: {
  custom: {
    50: '#895ba3',
    500: '#54147c',
    950: '#000000',
  },
}
SCSS
$custom: #54147c;
$custom-light: #895ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#54147c",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 276.923,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35847,
    "c": 0.16203,
    "h": 307.7
  },
  "luminance": 0.0384
}

Semantic roles & 50–950 ramp

primary
#54147C
secondary
#68B23A
accent
#EF397F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54147C

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

Preview Lab → · Contrast checker → · Palette generator →

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