#54156E#54156E

#54156E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.8% C 0.147 H 313.6°. Best body text is #FFFFFF at 12.29:1 contrast (WCAG AA passes).

Color values

HEX#54156E
RGBrgb(84, 21, 110)
HSLhsl(282, 68%, 26%)
HSVhsv(282, 81%, 43%)
CMYKcmyk(23.6%, 80.9%, 0%, 56.9%)
CIE-LABlab(22.11, 42.65, -37.76)
CIE-LCHlch(22.11, 56.97, 318.48°)
OKLaboklab(34.77% 0.1015 -0.1067)
OKLCHoklch(34.77% 0.147 313.6)
XYZxyz(6.7383, 3.5472, 15.0785)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54156E #2F6E15
analogous
#27156E #54156E #6E155B
triadic
#54156E #6E5415 #156E54
tetradic
#54156E #6E2715 #2F6E15 #155B6E
square
#54156E #6E2715 #2F6E15 #155B6E
split-complementary
#54156E #5B6E15 #156E27
monochromatic
#14051A #2D0B3B #54156E #7B1FA1 #A229D5

Accessibility & contrast

On white

12.29
#54156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54156E
12.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54156E#FFFFFF#000000##FFFFFF
##54156E1.0012.291.7112.29
#FFFFFF12.291.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#0B366C
Tritanopia (blue-blind)
#512A41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #54156e;
/* rgb */ color: rgb(84, 21, 110);
/* oklch */ color: oklch(34.8% 0.147 313.6);
Tailwind
colors: {
  custom: {
    50: '#885b98',
    500: '#54156e',
    950: '#000000',
  },
}
SCSS
$custom: #54156e;
$custom-light: #885b98;
$custom-dark: #000000;
JSON
{
  "hex": "#54156e",
  "rgb": {
    "r": 84,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 282.472,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3477,
    "c": 0.14732,
    "h": 313.6
  },
  "luminance": 0.03547
}

Semantic roles & 50–950 ramp

primary
#54156E
secondary
#59A43A
accent
#EB3D70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54156E

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

Preview Lab → · Contrast checker → · Palette generator →

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