#54138C#54138C

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

Color values

HEX#54138C
RGBrgb(84, 19, 140)
HSLhsl(272, 76%, 31%)
HSVhsv(272, 86%, 55%)
CMYKcmyk(40%, 86.4%, 0%, 45.1%)
CIE-LABlab(24.46, 50.25, -52.98)
CIE-LCHlch(24.46, 73.02, 313.48°)
OKLaboklab(37.21% 0.0946 -0.1514)
OKLCHoklch(37.21% 0.179 302)
XYZxyz(8.6215, 4.2440, 25.1708)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54138C #4B8C13
analogous
#17138C #54138C #8C1387
triadic
#54138C #8C5413 #138C54
tetradic
#54138C #8C1713 #4B8C13 #13878C
square
#54138C #8C1713 #4B8C13 #13878C
split-complementary
#54138C #878C13 #138C17
monochromatic
#130420 #340C56 #54138C #741AC2 #9336E4

Accessibility & contrast

On white

11.36
#54138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54138C
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54138C#FFFFFF#000000##FFFFFF
##54138C1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#483752
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #54138c;
/* rgb */ color: rgb(84, 19, 140);
/* oklch */ color: oklch(37.2% 0.179 302.0);
Tailwind
colors: {
  custom: {
    50: '#8b5caf',
    500: '#54138c',
    950: '#000000',
  },
}
SCSS
$custom: #54138c;
$custom-light: #8b5caf;
$custom-dark: #000000;
JSON
{
  "hex": "#54138c",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 272.231,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.37208,
    "c": 0.17855,
    "h": 302
  },
  "luminance": 0.04244
}

Semantic roles & 50–950 ramp

primary
#54138C
secondary
#78C03B
accent
#F3358D
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0D0410
muted
#7D797F

Preview Lab

Preview with #54138C

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

Preview Lab → · Contrast checker → · Palette generator →

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