#51124A#51124A

#51124A is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.4% C 0.116 H 332.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#51124A
RGBrgb(81, 18, 74)
HSLhsl(307, 64%, 19%)
HSVhsv(307, 78%, 32%)
CMYKcmyk(0%, 77.8%, 8.6%, 68.2%)
CIE-LABlab(18.70, 35.83, -19.28)
CIE-LCHlch(18.70, 40.69, 331.71°)
OKLaboklab(31.44% 0.1033 -0.0529)
OKLCHoklch(31.44% 0.116 332.9)
XYZxyz(4.8457, 2.6768, 6.7387)
Luminance0.0268 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51124A #125119
analogous
#391251 #51124A #51122B
triadic
#51124A #4A5112 #124A51
tetradic
#51124A #513912 #125119 #122B51
square
#51124A #513912 #125119 #122B51
split-complementary
#51124A #2B5112 #125139
monochromatic
#190617 #1F071C #51124A #831D78 #B528A5

Accessibility & contrast

On white

13.68
#51124A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#51124A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51124A
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51124A#FFFFFF#000000##FFFFFF
##51124A1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F284C
Deuteranopia (green-blind)
#263148
Tritanopia (blue-blind)
#55182C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #51124a;
/* rgb */ color: rgb(81, 18, 74);
/* oklch */ color: oklch(31.4% 0.116 332.9);
Tailwind
colors: {
  custom: {
    50: '#84577c',
    500: '#51124a',
    950: '#000000',
  },
}
SCSS
$custom: #51124a;
$custom-light: #84577c;
$custom-dark: #000000;
JSON
{
  "hex": "#51124a",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 74
  },
  "hsl": {
    "h": 306.667,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31443,
    "c": 0.11602,
    "h": 332.9
  },
  "luminance": 0.02676
}

Semantic roles & 50–950 ramp

primary
#51124A
secondary
#358A3E
accent
#E75441
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0309
muted
#7C787B

Preview Lab

Preview with #51124A

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

Preview Lab → · Contrast checker → · Palette generator →

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