#54126E#54126E

#54126E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.5% C 0.150 H 313.8°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#54126E
RGBrgb(84, 18, 110)
HSLhsl(283, 72%, 25%)
HSVhsv(283, 84%, 43%)
CMYKcmyk(23.6%, 83.6%, 0%, 56.9%)
CIE-LABlab(21.74, 43.74, -38.37)
CIE-LCHlch(21.74, 58.18, 318.74°)
OKLaboklab(34.51% 0.1042 -0.1085)
OKLCHoklch(34.51% 0.15 313.8)
XYZxyz(6.6864, 3.4434, 15.0613)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54126E #2C6E12
analogous
#26126E #54126E #6E125A
triadic
#54126E #6E5412 #126E54
tetradic
#54126E #6E2612 #2C6E12 #125A6E
square
#54126E #6E2612 #2C6E12 #125A6E
split-complementary
#54126E #5A6E12 #126E26
monochromatic
#14041A #2C0939 #54126E #7C1BA3 #A423D7

Accessibility & contrast

On white

12.44
#54126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#54126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54126E
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54126E#FFFFFF#000000##FFFFFF
##54126E1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#07366C
Tritanopia (blue-blind)
#512940
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #54126e;
/* rgb */ color: rgb(84, 18, 110);
/* oklch */ color: oklch(34.5% 0.150 313.8);
Tailwind
colors: {
  custom: {
    50: '#885998',
    500: '#54126e',
    950: '#000000',
  },
}
SCSS
$custom: #54126e;
$custom-light: #885998;
$custom-dark: #000000;
JSON
{
  "hex": "#54126e",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 283.043,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34507,
    "c": 0.15043,
    "h": 313.8
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#54126E
secondary
#56A537
accent
#EF396C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #54126E

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

Preview Lab → · Contrast checker → · Palette generator →

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