#54137F#54137F

#54137F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.166 H 306.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#54137F
RGBrgb(84, 19, 127)
HSLhsl(276, 74%, 29%)
HSVhsv(276, 85%, 50%)
CMYKcmyk(33.9%, 85%, 0%, 50.2%)
CIE-LABlab(23.28, 47.21, -46.75)
CIE-LCHlch(23.28, 66.44, 315.28°)
OKLaboklab(36.03% 0.0989 -0.1331)
OKLCHoklch(36.03% 0.166 306.6)
XYZxyz(7.7190, 3.8830, 20.4174)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54137F #3E7F13
analogous
#1E137F #54137F #7F1374
triadic
#54137F #7F5413 #137F54
tetradic
#54137F #7F1E13 #3E7F13 #13747F
square
#54137F #7F1E13 #3E7F13 #13747F
split-complementary
#54137F #747F13 #137F1E
monochromatic
#12041B #310B4A #54137F #771BB4 #982DE0

Accessibility & contrast

On white

11.82
#54137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#54137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54137F
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54137F#FFFFFF#000000##FFFFFF
##54137F1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#4C314B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54137f;
/* rgb */ color: rgb(84, 19, 127);
/* oklch */ color: oklch(36.0% 0.166 306.6);
Tailwind
colors: {
  custom: {
    50: '#895ba5',
    500: '#54137f',
    950: '#000000',
  },
}
SCSS
$custom: #54137f;
$custom-light: #895ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#54137f",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 276.111,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.16585,
    "h": 306.6
  },
  "luminance": 0.03883
}

Semantic roles & 50–950 ramp

primary
#54137F
secondary
#6AB439
accent
#F13781
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54137F

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

Preview Lab → · Contrast checker → · Palette generator →

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