#54147F#54147F

#54147F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.165 H 306.5°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#54147F
RGBrgb(84, 20, 127)
HSLhsl(276, 73%, 29%)
HSVhsv(276, 84%, 50%)
CMYKcmyk(33.9%, 84.3%, 0%, 50.2%)
CIE-LABlab(23.40, 46.87, -46.56)
CIE-LCHlch(23.40, 66.07, 315.19°)
OKLaboklab(36.11% 0.0981 -0.1326)
OKLCHoklch(36.11% 0.165 306.5)
XYZxyz(7.7362, 3.9175, 20.4232)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54147F #3F7F14
analogous
#1F147F #54147F #7F1475
triadic
#54147F #7F5414 #147F54
tetradic
#54147F #7F1F14 #3F7F14 #14757F
square
#54147F #7F1F14 #3F7F14 #14757F
split-complementary
#54147F #757F14 #147F1F
monochromatic
#11041A #310C4A #54147F #771CB4 #982FDE

Accessibility & contrast

On white

11.78
#54147F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#54147F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54147F
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54147F#FFFFFF#000000##FFFFFF
##54147F1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#4C314B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #54147f;
/* rgb */ color: rgb(84, 20, 127);
/* oklch */ color: oklch(36.1% 0.165 306.5);
Tailwind
colors: {
  custom: {
    50: '#895ba5',
    500: '#54147f',
    950: '#000000',
  },
}
SCSS
$custom: #54147f;
$custom-light: #895ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#54147f",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 127
  },
  "hsl": {
    "h": 275.888,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.36108,
    "c": 0.16496,
    "h": 306.5
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#54147F
secondary
#6BB43B
accent
#EF3882
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54147F

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

Preview Lab → · Contrast checker → · Palette generator →

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