#51124E#51124E

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

Color values

HEX#51124E
RGBrgb(81, 18, 78)
HSLhsl(303, 64%, 19%)
HSVhsv(303, 78%, 32%)
CMYKcmyk(0%, 77.8%, 3.7%, 68.2%)
CIE-LABlab(18.94, 36.56, -21.64)
CIE-LCHlch(18.94, 42.48, 329.38°)
OKLaboklab(31.69% 0.1035 -0.0597)
OKLCHoklch(31.69% 0.119 330)
XYZxyz(4.9848, 2.7324, 7.4711)
Luminance0.0273 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51124E #125115
analogous
#351251 #51124E #51122F
triadic
#51124E #4E5112 #124E51
tetradic
#51124E #513512 #125115 #122F51
square
#51124E #513512 #125115 #122F51
split-complementary
#51124E #2F5112 #125135
monochromatic
#190618 #1F071E #51124E #831D7E #B528AE

Accessibility & contrast

On white

13.58
#51124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#51124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51124E
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51124E#FFFFFF#000000##FFFFFF
##51124E1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B2950
Deuteranopia (green-blind)
#24314C
Tritanopia (blue-blind)
#541A2E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #51124e;
/* rgb */ color: rgb(81, 18, 78);
/* oklch */ color: oklch(31.7% 0.119 330.0);
Tailwind
colors: {
  custom: {
    50: '#845780',
    500: '#51124e',
    950: '#000000',
  },
}
SCSS
$custom: #51124e;
$custom-light: #845780;
$custom-dark: #000000;
JSON
{
  "hex": "#51124e",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 302.857,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.31692,
    "c": 0.11948,
    "h": 330
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#51124E
secondary
#358A39
accent
#E74941
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #51124E

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

Preview Lab → · Contrast checker → · Palette generator →

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