#54147B#54147B

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

Color values

HEX#54147B
RGBrgb(84, 20, 123)
HSLhsl(277, 72%, 28%)
HSVhsv(277, 84%, 48%)
CMYKcmyk(31.7%, 83.7%, 0%, 51.8%)
CIE-LABlab(23.05, 45.95, -44.58)
CIE-LCHlch(23.05, 64.03, 315.86°)
OKLaboklab(35.76% 0.0993 -0.1268)
OKLCHoklch(35.76% 0.161 308.1)
XYZxyz(7.4807, 3.8153, 19.0774)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54147B #3B7B14
analogous
#21147B #54147B #7B146E
triadic
#54147B #7B5414 #147B54
tetradic
#54147B #7B2114 #3B7B14 #146E7B
square
#54147B #7B2114 #3B7B14 #146E7B
split-complementary
#54147B #6E7B14 #147B21
monochromatic
#12041A #300B46 #54147B #781DB0 #9A2DDD

Accessibility & contrast

On white

11.91
#54147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#54147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54147B
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54147B#FFFFFF#000000##FFFFFF
##54147B1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003879
Tritanopia (blue-blind)
#4E2F48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54147b;
/* rgb */ color: rgb(84, 20, 123);
/* oklch */ color: oklch(35.8% 0.161 308.1);
Tailwind
colors: {
  custom: {
    50: '#895ba2',
    500: '#54147b',
    950: '#000000',
  },
}
SCSS
$custom: #54147b;
$custom-light: #895ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#54147b",
  "rgb": {
    "r": 84,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 277.282,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3576,
    "c": 0.16105,
    "h": 308.1
  },
  "luminance": 0.03815
}

Semantic roles & 50–950 ramp

primary
#54147B
secondary
#67B13A
accent
#EF397E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54147B

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

Preview Lab → · Contrast checker → · Palette generator →

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