#54128C#54128C

#54128C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.179 H 302.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#54128C
RGBrgb(84, 18, 140)
HSLhsl(272, 77%, 31%)
HSVhsv(272, 87%, 55%)
CMYKcmyk(40%, 87.1%, 0%, 45.1%)
CIE-LABlab(24.36, 50.56, -53.16)
CIE-LCHlch(24.36, 73.36, 313.57°)
OKLaboklab(37.14% 0.0952 -0.1519)
OKLCHoklch(37.14% 0.179 302.1)
XYZxyz(8.6049, 4.2108, 25.1653)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54128C #4A8C12
analogous
#17128C #54128C #8C1287
triadic
#54128C #8C5412 #128C54
tetradic
#54128C #8C1712 #4A8C12 #12878C
square
#54128C #8C1712 #4A8C12 #12878C
split-complementary
#54128C #878C12 #128C17
monochromatic
#130420 #330B56 #54128C #7519C2 #9334E5

Accessibility & contrast

On white

11.40
#54128C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#54128C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54128C
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54128C#FFFFFF#000000##FFFFFF
##54128C1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#483652
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54128c;
/* rgb */ color: rgb(84, 18, 140);
/* oklch */ color: oklch(37.1% 0.179 302.1);
Tailwind
colors: {
  custom: {
    50: '#8b5baf',
    500: '#54128c',
    950: '#000000',
  },
}
SCSS
$custom: #54128c;
$custom-light: #8b5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#54128c",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 140
  },
  "hsl": {
    "h": 272.459,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.37136,
    "c": 0.1793,
    "h": 302.1
  },
  "luminance": 0.04211
}

Semantic roles & 50–950 ramp

primary
#54128C
secondary
#77C039
accent
#F4348C
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0410
muted
#7D797F

Preview Lab

Preview with #54128C

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

Preview Lab → · Contrast checker → · Palette generator →

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