#54128F#54128F

#54128F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.4% C 0.182 H 301.1°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).

Color values

HEX#54128F
RGBrgb(84, 18, 143)
HSLhsl(272, 78%, 32%)
HSVhsv(272, 87%, 56%)
CMYKcmyk(41.3%, 87.4%, 0%, 43.9%)
CIE-LABlab(24.64, 51.27, -54.56)
CIE-LCHlch(24.64, 74.87, 313.22°)
OKLaboklab(37.42% 0.0941 -0.156)
OKLCHoklch(37.42% 0.182 301.1)
XYZxyz(8.8292, 4.3005, 26.3462)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54128F #4D8F12
analogous
#16128F #54128F #8F128C
triadic
#54128F #8F5412 #128F54
tetradic
#54128F #8F1612 #4D8F12 #128C8F
square
#54128F #8F1612 #4D8F12 #128C8F
split-complementary
#54128F #8C8F12 #128F16
monochromatic
#140422 #340B59 #54128F #7419C5 #9336E6

Accessibility & contrast

On white

11.29
#54128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#54128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54128F
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54128F#FFFFFF#000000##FFFFFF
##54128F1.0011.291.8611.29
#FFFFFF11.291.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#463854
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54128f;
/* rgb */ color: rgb(84, 18, 143);
/* oklch */ color: oklch(37.4% 0.182 301.1);
Tailwind
colors: {
  custom: {
    50: '#8b5bb1',
    500: '#54128f',
    950: '#000000',
  },
}
SCSS
$custom: #54128f;
$custom-light: #8b5bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#54128f",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 271.68,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37418,
    "c": 0.18222,
    "h": 301.1
  },
  "luminance": 0.04301
}

Semantic roles & 50–950 ramp

primary
#54128F
secondary
#7BC33A
accent
#F4348F
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0411
muted
#7E7980

Preview Lab

Preview with #54128F

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

Preview Lab → · Contrast checker → · Palette generator →

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