#54126C#54126C

#54126C is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.149 H 314.8°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#54126C
RGBrgb(84, 18, 108)
HSLhsl(284, 71%, 25%)
HSVhsv(284, 83%, 42%)
CMYKcmyk(22.2%, 83.3%, 0%, 57.6%)
CIE-LABlab(21.58, 43.31, -37.32)
CIE-LCHlch(21.58, 57.17, 319.24°)
OKLaboklab(34.35% 0.1046 -0.1054)
OKLCHoklch(34.35% 0.149 314.8)
XYZxyz(6.5788, 3.4004, 14.4942)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54126C #2A6C12
analogous
#27126C #54126C #6C1257
triadic
#54126C #6C5412 #126C54
tetradic
#54126C #6C2712 #2A6C12 #12576C
square
#54126C #6C2712 #2A6C12 #12576C
split-complementary
#54126C #576C12 #126C27
monochromatic
#14041A #2B0938 #54126C #7D1BA0 #A623D5

Accessibility & contrast

On white

12.50
#54126C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#54126C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54126C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54126C#FFFFFF#000000##FFFFFF
##54126C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#0C356A
Tritanopia (blue-blind)
#52283F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #54126c;
/* rgb */ color: rgb(84, 18, 108);
/* oklch */ color: oklch(34.3% 0.149 314.8);
Tailwind
colors: {
  custom: {
    50: '#885997',
    500: '#54126c',
    950: '#000000',
  },
}
SCSS
$custom: #54126c;
$custom-light: #885997;
$custom-dark: #000000;
JSON
{
  "hex": "#54126c",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 108
  },
  "hsl": {
    "h": 284,
    "s": 71.429,
    "l": 24.706
  },
  "oklch": {
    "l": 0.34346,
    "c": 0.14854,
    "h": 314.8
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

primary
#54126C
secondary
#53A336
accent
#EE3A6A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54126C

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

Preview Lab → · Contrast checker → · Palette generator →

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