#54156F#54156F

#54156F is a dark, vivid purple. Relative luminance 0.036; OKLCH L 34.8% C 0.148 H 313.1°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#54156F
RGBrgb(84, 21, 111)
HSLhsl(282, 68%, 26%)
HSVhsv(282, 81%, 44%)
CMYKcmyk(24.3%, 81.1%, 0%, 56.5%)
CIE-LABlab(22.19, 42.88, -38.28)
CIE-LCHlch(22.19, 57.48, 318.24°)
OKLaboklab(34.85% 0.1013 -0.1083)
OKLCHoklch(34.85% 0.148 313.1)
XYZxyz(6.7931, 3.5691, 15.3669)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54156F #306F15
analogous
#27156F #54156F #6F155D
triadic
#54156F #6F5415 #156F54
tetradic
#54156F #6F2715 #306F15 #155D6F
square
#54156F #6F2715 #306F15 #155D6F
split-complementary
#54156F #5D6F15 #156F27
monochromatic
#13051A #2D0B3C #54156F #7B1FA2 #A228D6

Accessibility & contrast

On white

12.25
#54156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#54156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54156F
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54156F#FFFFFF#000000##FFFFFF
##54156F1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#09366D
Tritanopia (blue-blind)
#512A42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54156f;
/* rgb */ color: rgb(84, 21, 111);
/* oklch */ color: oklch(34.8% 0.148 313.1);
Tailwind
colors: {
  custom: {
    50: '#885b99',
    500: '#54156f',
    950: '#000000',
  },
}
SCSS
$custom: #54156f;
$custom-light: #885b99;
$custom-dark: #000000;
JSON
{
  "hex": "#54156f",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 282,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.3485,
    "c": 0.14829,
    "h": 313.1
  },
  "luminance": 0.03569
}

Semantic roles & 50–950 ramp

primary
#54156F
secondary
#5BA53A
accent
#EB3D71
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54156F

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

Preview Lab → · Contrast checker → · Palette generator →

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