#54137D#54137D

#54137D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.9% C 0.164 H 307.4°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#54137D
RGBrgb(84, 19, 125)
HSLhsl(277, 74%, 28%)
HSVhsv(277, 85%, 49%)
CMYKcmyk(32.8%, 84.8%, 0%, 51%)
CIE-LABlab(23.11, 46.75, -45.77)
CIE-LCHlch(23.11, 65.43, 315.61°)
OKLaboklab(35.85% 0.0995 -0.1302)
OKLCHoklch(35.85% 0.164 307.4)
XYZxyz(7.5899, 3.8313, 19.7377)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54137D #3C7D13
analogous
#1F137D #54137D #7D1371
triadic
#54137D #7D5413 #137D54
tetradic
#54137D #7D1F13 #3C7D13 #13717D
square
#54137D #7D1F13 #3C7D13 #13717D
split-complementary
#54137D #717D13 #137D1F
monochromatic
#12041B #300B48 #54137D #781BB2 #992CDF

Accessibility & contrast

On white

11.89
#54137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#54137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54137D
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54137D#FFFFFF#000000##FFFFFF
##54137D1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#4D3049
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54137d;
/* rgb */ color: rgb(84, 19, 125);
/* oklch */ color: oklch(35.9% 0.164 307.4);
Tailwind
colors: {
  custom: {
    50: '#895ba3',
    500: '#54137d',
    950: '#000000',
  },
}
SCSS
$custom: #54137d;
$custom-light: #895ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#54137d",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 276.792,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35852,
    "c": 0.16391,
    "h": 307.4
  },
  "luminance": 0.03831
}

Semantic roles & 50–950 ramp

primary
#54137D
secondary
#68B339
accent
#F0387F
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54137D

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

Preview Lab → · Contrast checker → · Palette generator →

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