#54126D#54126D

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

Color values

HEX#54126D
RGBrgb(84, 18, 109)
HSLhsl(284, 72%, 25%)
HSVhsv(284, 83%, 43%)
CMYKcmyk(22.9%, 83.5%, 0%, 57.3%)
CIE-LABlab(21.66, 43.52, -37.85)
CIE-LCHlch(21.66, 57.68, 318.99°)
OKLaboklab(34.43% 0.1044 -0.107)
OKLCHoklch(34.43% 0.149 314.3)
XYZxyz(6.6323, 3.4218, 14.7761)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54126D #2B6D12
analogous
#26126D #54126D #6D1259
triadic
#54126D #6D5412 #126D54
tetradic
#54126D #6D2612 #2B6D12 #12596D
square
#54126D #6D2612 #2B6D12 #12596D
split-complementary
#54126D #596D12 #126D26
monochromatic
#14041A #2C0938 #54126D #7C1BA2 #A523D6

Accessibility & contrast

On white

12.47
#54126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #54126D
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54126D#FFFFFF#000000##FFFFFF
##54126D1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#0A356B
Tritanopia (blue-blind)
#522840
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #54126d;
/* rgb */ color: rgb(84, 18, 109);
/* oklch */ color: oklch(34.4% 0.149 314.3);
Tailwind
colors: {
  custom: {
    50: '#885997',
    500: '#54126d',
    950: '#000000',
  },
}
SCSS
$custom: #54126d;
$custom-light: #885997;
$custom-dark: #000000;
JSON
{
  "hex": "#54126d",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 283.516,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.34426,
    "c": 0.14949,
    "h": 314.3
  },
  "luminance": 0.03422
}

Semantic roles & 50–950 ramp

primary
#54126D
secondary
#55A437
accent
#EE396B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040D
muted
#7D797E

Preview Lab

Preview with #54126D

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

Preview Lab → · Contrast checker → · Palette generator →

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