#54137A#54137A

#54137A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.161 H 308.6°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#54137A
RGBrgb(84, 19, 122)
HSLhsl(278, 73%, 28%)
HSVhsv(278, 84%, 48%)
CMYKcmyk(31.1%, 84.4%, 0%, 52.2%)
CIE-LABlab(22.85, 46.07, -44.28)
CIE-LCHlch(22.85, 63.90, 316.13°)
OKLaboklab(35.59% 0.1004 -0.1259)
OKLCHoklch(35.59% 0.161 308.6)
XYZxyz(7.4011, 3.7558, 18.7436)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54137A #397A13
analogous
#20137A #54137A #7A136D
triadic
#54137A #7A5413 #137A54
tetradic
#54137A #7A2013 #397A13 #136D7A
square
#54137A #7A2013 #397A13 #136D7A
split-complementary
#54137A #6D7A13 #137A20
monochromatic
#12041A #300B45 #54137A #781BAF #9B2ADE

Accessibility & contrast

On white

11.99
#54137A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#54137A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54137A
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54137A#FFFFFF#000000##FFFFFF
##54137A1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#4E2E48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54137a;
/* rgb */ color: rgb(84, 19, 122);
/* oklch */ color: oklch(35.6% 0.161 308.6);
Tailwind
colors: {
  custom: {
    50: '#895aa1',
    500: '#54137a',
    950: '#000000',
  },
}
SCSS
$custom: #54137a;
$custom-light: #895aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#54137a",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 122
  },
  "hsl": {
    "h": 277.864,
    "s": 73.05,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35591,
    "c": 0.161,
    "h": 308.6
  },
  "luminance": 0.03756
}

Semantic roles & 50–950 ramp

primary
#54137A
secondary
#65B039
accent
#F0387C
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54137A

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

Preview Lab → · Contrast checker → · Palette generator →

#54137A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva