#51124D#51124D

#51124D is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.6% C 0.119 H 330.7°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#51124D
RGBrgb(81, 18, 77)
HSLhsl(304, 64%, 19%)
HSVhsv(304, 78%, 32%)
CMYKcmyk(0%, 77.8%, 4.9%, 68.2%)
CIE-LABlab(18.88, 36.37, -21.05)
CIE-LCHlch(18.88, 42.03, 329.94°)
OKLaboklab(31.63% 0.1035 -0.058)
OKLCHoklch(31.63% 0.119 330.7)
XYZxyz(4.9492, 2.7182, 7.2837)
Luminance0.0272 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51124D #125116
analogous
#361251 #51124D #51122E
triadic
#51124D #4D5112 #124D51
tetradic
#51124D #513612 #125116 #122E51
square
#51124D #513612 #125116 #122E51
split-complementary
#51124D #2E5112 #125136
monochromatic
#190618 #1F071D #51124D #831D7D #B528AC

Accessibility & contrast

On white

13.60
#51124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51124D
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51124D#FFFFFF#000000##FFFFFF
##51124D1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C284F
Deuteranopia (green-blind)
#25314B
Tritanopia (blue-blind)
#541A2E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51124d;
/* rgb */ color: rgb(81, 18, 77);
/* oklch */ color: oklch(31.6% 0.119 330.7);
Tailwind
colors: {
  custom: {
    50: '#84577f',
    500: '#51124d',
    950: '#000000',
  },
}
SCSS
$custom: #51124d;
$custom-light: #84577f;
$custom-dark: #000000;
JSON
{
  "hex": "#51124d",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 303.81,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31629,
    "c": 0.1186,
    "h": 330.7
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#51124D
secondary
#358A3A
accent
#E74C41
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #51124D

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

Preview Lab → · Contrast checker → · Palette generator →

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