#54126A#54126A

#54126A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.147 H 315.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#54126A
RGBrgb(84, 18, 106)
HSLhsl(285, 71%, 24%)
HSVhsv(285, 83%, 42%)
CMYKcmyk(20.8%, 83%, 0%, 58.4%)
CIE-LABlab(21.43, 42.88, -36.27)
CIE-LCHlch(21.43, 56.16, 319.77°)
OKLaboklab(34.19% 0.105 -0.1024)
OKLCHoklch(34.19% 0.147 315.7)
XYZxyz(6.4736, 3.3583, 13.9401)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54126A #286A12
analogous
#28126A #54126A #6A1254
triadic
#54126A #6A5412 #126A54
tetradic
#54126A #6A2812 #286A12 #12546A
square
#54126A #6A2812 #286A12 #12546A
split-complementary
#54126A #546A12 #126A28
monochromatic
#15041A #2B0936 #54126A #7D1B9E #A724D3

Accessibility & contrast

On white

12.56
#54126A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#54126A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54126A
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54126A#FFFFFF#000000##FFFFFF
##54126A1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#0F3568
Tritanopia (blue-blind)
#52273E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #54126a;
/* rgb */ color: rgb(84, 18, 106);
/* oklch */ color: oklch(34.2% 0.147 315.7);
Tailwind
colors: {
  custom: {
    50: '#885995',
    500: '#54126a',
    950: '#000000',
  },
}
SCSS
$custom: #54126a;
$custom-light: #885995;
$custom-dark: #000000;
JSON
{
  "hex": "#54126a",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 106
  },
  "hsl": {
    "h": 285,
    "s": 70.968,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34187,
    "c": 0.14665,
    "h": 315.7
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#54126A
secondary
#51A236
accent
#EE3A67
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54126A

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

Preview Lab → · Contrast checker → · Palette generator →

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