#51124C#51124C

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

Color values

HEX#51124C
RGBrgb(81, 18, 76)
HSLhsl(305, 64%, 19%)
HSVhsv(305, 78%, 32%)
CMYKcmyk(0%, 77.8%, 6.2%, 68.2%)
CIE-LABlab(18.82, 36.19, -20.47)
CIE-LCHlch(18.82, 41.58, 330.51°)
OKLaboklab(31.57% 0.1034 -0.0563)
OKLCHoklch(31.57% 0.118 331.4)
XYZxyz(4.9141, 2.7041, 7.0992)
Luminance0.0270 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51124C #125117
analogous
#371251 #51124C #51122D
triadic
#51124C #4C5112 #124C51
tetradic
#51124C #513712 #125117 #122D51
square
#51124C #513712 #125117 #122D51
split-complementary
#51124C #2D5112 #125137
monochromatic
#190617 #1F071D #51124C #831D7B #B528AA

Accessibility & contrast

On white

13.63
#51124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51124C
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51124C#FFFFFF#000000##FFFFFF
##51124C1.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D284E
Deuteranopia (green-blind)
#26314A
Tritanopia (blue-blind)
#55192D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51124c;
/* rgb */ color: rgb(81, 18, 76);
/* oklch */ color: oklch(31.6% 0.118 331.4);
Tailwind
colors: {
  custom: {
    50: '#84577e',
    500: '#51124c',
    950: '#000000',
  },
}
SCSS
$custom: #51124c;
$custom-light: #84577e;
$custom-dark: #000000;
JSON
{
  "hex": "#51124c",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 304.762,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31566,
    "c": 0.11774,
    "h": 331.4
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#51124C
secondary
#358A3C
accent
#E74E41
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #51124C

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

Preview Lab → · Contrast checker → · Palette generator →

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