#54137C#54137C

#54137C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.8% C 0.163 H 307.8°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#54137C
RGBrgb(84, 19, 124)
HSLhsl(277, 73%, 28%)
HSVhsv(277, 85%, 49%)
CMYKcmyk(32.3%, 84.7%, 0%, 51.4%)
CIE-LABlab(23.02, 46.52, -45.27)
CIE-LCHlch(23.02, 64.92, 315.78°)
OKLaboklab(35.77% 0.0998 -0.1288)
OKLCHoklch(35.77% 0.163 307.8)
XYZxyz(7.5263, 3.8059, 19.4030)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54137C #3B7C13
analogous
#1F137C #54137C #7C136F
triadic
#54137C #7C5413 #137C54
tetradic
#54137C #7C1F13 #3B7C13 #136F7C
square
#54137C #7C1F13 #3B7C13 #136F7C
split-complementary
#54137C #6F7C13 #137C1F
monochromatic
#12041B #300B47 #54137C #781BB1 #9A2BDF

Accessibility & contrast

On white

11.92
#54137C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#54137C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54137C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54137C#FFFFFF#000000##FFFFFF
##54137C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#4D2F49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54137c;
/* rgb */ color: rgb(84, 19, 124);
/* oklch */ color: oklch(35.8% 0.163 307.8);
Tailwind
colors: {
  custom: {
    50: '#895ba3',
    500: '#54137c',
    950: '#000000',
  },
}
SCSS
$custom: #54137c;
$custom-light: #895ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#54137c",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 124
  },
  "hsl": {
    "h": 277.143,
    "s": 73.427,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35765,
    "c": 0.16293,
    "h": 307.8
  },
  "luminance": 0.03806
}

Semantic roles & 50–950 ramp

primary
#54137C
secondary
#67B239
accent
#F0387E
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54137C

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

Preview Lab → · Contrast checker → · Palette generator →

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