#54108D#54108D

#54108D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.182 H 301.9°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#54108D
RGBrgb(84, 16, 141)
HSLhsl(273, 80%, 31%)
HSVhsv(273, 89%, 55%)
CMYKcmyk(40.4%, 88.7%, 0%, 44.7%)
CIE-LABlab(24.25, 51.38, -53.95)
CIE-LCHlch(24.25, 74.50, 313.60°)
OKLaboklab(37.09% 0.096 -0.1542)
OKLCHoklch(37.09% 0.182 301.9)
XYZxyz(8.6480, 4.1784, 25.5450)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54108D #498D10
analogous
#15108D #54108D #8D1087
triadic
#54108D #8D5410 #108D54
tetradic
#54108D #8D1510 #498D10 #10878D
square
#54108D #8D1510 #498D10 #10878D
split-complementary
#54108D #878D10 #108D15
monochromatic
#13041F #330A56 #54108D #7516C4 #9430E7

Accessibility & contrast

On white

11.44
#54108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#54108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54108D
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54108D#FFFFFF#000000##FFFFFF
##54108D1.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#473652
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54108d;
/* rgb */ color: rgb(84, 16, 141);
/* oklch */ color: oklch(37.1% 0.182 301.9);
Tailwind
colors: {
  custom: {
    50: '#8b5baf',
    500: '#54108d',
    950: '#000000',
  },
}
SCSS
$custom: #54108d;
$custom-light: #8b5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#54108d",
  "rgb": {
    "r": 84,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 272.64,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.37093,
    "c": 0.18169,
    "h": 301.9
  },
  "luminance": 0.04178
}

Semantic roles & 50–950 ramp

primary
#54108D
secondary
#76C237
accent
#F6328B
background
#F9F5FA
surface
#F1E9F5
border
#CBC5CF
text
#0D0411
muted
#7E7980

Preview Lab

Preview with #54108D

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

Preview Lab → · Contrast checker → · Palette generator →

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