#54137B#54137B

#54137B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.162 H 308.2°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#54137B
RGBrgb(84, 19, 123)
HSLhsl(278, 73%, 28%)
HSVhsv(278, 85%, 48%)
CMYKcmyk(31.7%, 84.6%, 0%, 51.8%)
CIE-LABlab(22.93, 46.30, -44.78)
CIE-LCHlch(22.93, 64.41, 315.96°)
OKLaboklab(35.68% 0.1001 -0.1273)
OKLCHoklch(35.68% 0.162 308.2)
XYZxyz(7.4634, 3.7807, 19.0716)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54137B #3A7B13
analogous
#20137B #54137B #7B136E
triadic
#54137B #7B5413 #137B54
tetradic
#54137B #7B2013 #3A7B13 #136E7B
square
#54137B #7B2013 #3A7B13 #136E7B
split-complementary
#54137B #6E7B13 #137B20
monochromatic
#12041B #300B46 #54137B #781BB0 #9B2ADE

Accessibility & contrast

On white

11.96
#54137B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54137B
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54137B#FFFFFF#000000##FFFFFF
##54137B1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#4E2F48
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #54137b;
/* rgb */ color: rgb(84, 19, 123);
/* oklch */ color: oklch(35.7% 0.162 308.2);
Tailwind
colors: {
  custom: {
    50: '#895aa2',
    500: '#54137b',
    950: '#000000',
  },
}
SCSS
$custom: #54137b;
$custom-light: #895aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#54137b",
  "rgb": {
    "r": 84,
    "g": 19,
    "b": 123
  },
  "hsl": {
    "h": 277.5,
    "s": 73.239,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35678,
    "c": 0.16197,
    "h": 308.2
  },
  "luminance": 0.03781
}

Semantic roles & 50–950 ramp

primary
#54137B
secondary
#66B139
accent
#F0387D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #54137B

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

Preview Lab → · Contrast checker → · Palette generator →

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