#54138E#54138E

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

Color values

HEX#54138E
RGBrgb(84, 19, 142)
HSLhsl(272, 76%, 32%)
HSVhsv(272, 87%, 56%)
CMYKcmyk(40.8%, 86.6%, 0%, 44.3%)
CIE-LABlab(24.65, 50.72, -53.92)
CIE-LCHlch(24.65, 74.03, 313.25°)
OKLaboklab(37.4% 0.0938 -0.1542)
OKLCHoklch(37.4% 0.181 301.3)
XYZxyz(8.7703, 4.3035, 25.9545)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54138E #4D8E13
analogous
#16138E #54138E #8E138B
triadic
#54138E #8E5413 #138E54
tetradic
#54138E #8E1613 #4D8E13 #138B8E
square
#54138E #8E1613 #4D8E13 #138B8E
split-complementary
#54138E #8B8E13 #138E16
monochromatic
#140522 #340C58 #54138E #741AC4 #9337E4

Accessibility & contrast

On white

11.29
#54138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#54138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54138E
11.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54138E#FFFFFF#000000##FFFFFF
##54138E1.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)
#003A91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#473853
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #54138e;
/* rgb */ color: rgb(84, 19, 142);
/* oklch */ color: oklch(37.4% 0.180 301.3);
Tailwind
colors: {
  custom: {
    50: '#8b5cb0',
    500: '#54138e',
    950: '#000000',
  },
}
SCSS
$custom: #54138e;
$custom-light: #8b5cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#54138e",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 271.707,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37396,
    "c": 0.1805,
    "h": 301.3
  },
  "luminance": 0.04304
}

Semantic roles & 50–950 ramp

primary
#54138E
secondary
#7BC23B
accent
#F3358E
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0D0411
muted
#7D7980

Preview Lab

Preview with #54138E

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

Preview Lab → · Contrast checker → · Palette generator →

#54138E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva