#54138D#54138D

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

Color values

HEX#54138D
RGBrgb(84, 19, 141)
HSLhsl(272, 76%, 31%)
HSVhsv(272, 87%, 55%)
CMYKcmyk(40.4%, 86.5%, 0%, 44.7%)
CIE-LABlab(24.56, 50.49, -53.45)
CIE-LCHlch(24.56, 73.53, 313.37°)
OKLaboklab(37.3% 0.0942 -0.1528)
OKLCHoklch(37.3% 0.18 301.7)
XYZxyz(8.6956, 4.2736, 25.5609)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54138D #4C8D13
analogous
#17138D #54138D #8D1389
triadic
#54138D #8D5413 #138D54
tetradic
#54138D #8D1713 #4C8D13 #13898D
square
#54138D #8D1713 #4C8D13 #13898D
split-complementary
#54138D #898D13 #138D17
monochromatic
#140421 #340C57 #54138D #741AC3 #9336E4

Accessibility & contrast

On white

11.32
#54138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#54138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54138D
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54138D#FFFFFF#000000##FFFFFF
##54138D1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#473753
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54138d;
/* rgb */ color: rgb(84, 19, 141);
/* oklch */ color: oklch(37.3% 0.180 301.7);
Tailwind
colors: {
  custom: {
    50: '#8b5caf',
    500: '#54138d',
    950: '#000000',
  },
}
SCSS
$custom: #54138d;
$custom-light: #8b5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#54138d",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 271.967,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.37302,
    "c": 0.17952,
    "h": 301.7
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#54138D
secondary
#79C13B
accent
#F3358E
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0410
muted
#7D797F

Preview Lab

Preview with #54138D

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

Preview Lab → · Contrast checker → · Palette generator →

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