#51126F#51126F

#51126F is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.150 H 311.5°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#51126F
RGBrgb(81, 18, 111)
HSLhsl(281, 72%, 25%)
HSVhsv(281, 84%, 44%)
CMYKcmyk(27%, 83.8%, 0%, 56.5%)
CIE-LABlab(21.32, 43.38, -39.72)
CIE-LCHlch(21.32, 58.82, 317.52°)
OKLaboklab(34.14% 0.0997 -0.1126)
OKLCHoklch(34.14% 0.15 311.5)
XYZxyz(6.4783, 3.3298, 15.3373)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51126F #306F12
analogous
#22126F #51126F #6F125E
triadic
#51126F #6F5112 #126F51
tetradic
#51126F #6F2212 #306F12 #125E6F
square
#51126F #6F2212 #306F12 #125E6F
split-complementary
#51126F #5E6F12 #126F22
monochromatic
#13041A #2B093A #51126F #771BA4 #9E23D8

Accessibility & contrast

On white

12.61
#51126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#51126F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51126F
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51126F#FFFFFF#000000##FFFFFF
##51126F1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#4D2941
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51126f;
/* rgb */ color: rgb(81, 18, 111);
/* oklch */ color: oklch(34.1% 0.150 311.5);
Tailwind
colors: {
  custom: {
    50: '#865999',
    500: '#51126f',
    950: '#000000',
  },
}
SCSS
$custom: #51126f;
$custom-light: #865999;
$custom-dark: #000000;
JSON
{
  "hex": "#51126f",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 280.645,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34137,
    "c": 0.15039,
    "h": 311.5
  },
  "luminance": 0.0333
}

Semantic roles & 50–950 ramp

primary
#51126F
secondary
#5BA637
accent
#EF3974
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #51126F

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

Preview Lab → · Contrast checker → · Palette generator →

#51126F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva