#54125C#54125C

#54125C is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.134 H 323.1°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#54125C
RGBrgb(84, 18, 92)
HSLhsl(294, 67%, 22%)
HSVhsv(294, 80%, 36%)
CMYKcmyk(8.7%, 80.4%, 0%, 63.9%)
CIE-LABlab(20.40, 39.99, -28.70)
CIE-LCHlch(20.40, 49.22, 324.33°)
OKLaboklab(33.14% 0.1069 -0.0802)
OKLCHoklch(33.14% 0.134 323.1)
XYZxyz(5.8040, 3.0905, 10.4140)
Luminance0.0309 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54125C #1A5C12
analogous
#2F125C #54125C #5C123F
triadic
#54125C #5C5412 #125C54
tetradic
#54125C #5C2F12 #1A5C12 #123F5C
square
#54125C #5C2F12 #1A5C12 #123F5C
split-complementary
#54125C #3F5C12 #125C2F
monochromatic
#17051A #250829 #54125C #831C8F #B126C2

Accessibility & contrast

On white

12.98
#54125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#54125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54125C
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54125C#FFFFFF#000000##FFFFFF
##54125C1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#1F345A
Tritanopia (blue-blind)
#552036
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #54125c;
/* rgb */ color: rgb(84, 18, 92);
/* oklch */ color: oklch(33.1% 0.134 323.1);
Tailwind
colors: {
  custom: {
    50: '#87588a',
    500: '#54125c',
    950: '#000000',
  },
}
SCSS
$custom: #54125c;
$custom-light: #87588a;
$custom-dark: #000000;
JSON
{
  "hex": "#54125c",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 293.514,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.33139,
    "c": 0.13363,
    "h": 323.1
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#54125C
secondary
#409435
accent
#EA3E50
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040C
muted
#7D797D

Preview Lab

Preview with #54125C

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

Preview Lab → · Contrast checker → · Palette generator →

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