#54125A#54125A

#54125A is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.0% C 0.132 H 324.3°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#54125A
RGBrgb(84, 18, 90)
HSLhsl(295, 67%, 21%)
HSVhsv(295, 80%, 35%)
CMYKcmyk(6.7%, 80%, 0%, 64.7%)
CIE-LABlab(20.27, 39.59, -27.58)
CIE-LCHlch(20.27, 48.25, 325.13°)
OKLaboklab(33% 0.1071 -0.0769)
OKLCHoklch(33% 0.132 324.3)
XYZxyz(5.7178, 3.0560, 9.9596)
Luminance0.0306 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#54125A #185A12
analogous
#30125A #54125A #5A123C
triadic
#54125A #5A5412 #125A54
tetradic
#54125A #5A3012 #185A12 #123C5A
square
#54125A #5A3012 #185A12 #123C5A
split-complementary
#54125A #3C5A12 #125A30
monochromatic
#18051A #240827 #54125A #841C8D #B326C0

Accessibility & contrast

On white

13.03
#54125A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#54125A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #54125A
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##54125A#FFFFFF#000000##FFFFFF
##54125A1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#203458
Tritanopia (blue-blind)
#561F35
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #54125a;
/* rgb */ color: rgb(84, 18, 90);
/* oklch */ color: oklch(33.0% 0.132 324.3);
Tailwind
colors: {
  custom: {
    50: '#875889',
    500: '#54125a',
    950: '#000000',
  },
}
SCSS
$custom: #54125a;
$custom-light: #875889;
$custom-dark: #000000;
JSON
{
  "hex": "#54125a",
  "rgb": {
    "r": 84,
    "g": 18,
    "b": 90
  },
  "hsl": {
    "h": 295,
    "s": 66.667,
    "l": 21.176
  },
  "oklch": {
    "l": 0.32998,
    "c": 0.13182,
    "h": 324.3
  },
  "luminance": 0.03056
}

Semantic roles & 50–950 ramp

primary
#54125A
secondary
#3D9335
accent
#EA3E4C
background
#F8F5F8
surface
#F0E9F0
border
#CBC5CB
text
#0C040B
muted
#7D797C

Preview Lab

Preview with #54125A

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

Preview Lab → · Contrast checker → · Palette generator →

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