#51136B#51136B

#51136B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.145 H 313.3°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#51136B
RGBrgb(81, 19, 107)
HSLhsl(282, 70%, 25%)
HSVhsv(282, 82%, 42%)
CMYKcmyk(24.3%, 82.2%, 0%, 58%)
CIE-LABlab(21.12, 42.13, -37.44)
CIE-LCHlch(21.12, 56.37, 318.37°)
OKLaboklab(33.89% 0.0997 -0.1059)
OKLCHoklch(33.89% 0.145 313.3)
XYZxyz(6.2796, 3.2768, 14.2088)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51136B #2D6B13
analogous
#25136B #51136B #6B1359
triadic
#51136B #6B5113 #136B51
tetradic
#51136B #6B2513 #2D6B13 #13596B
square
#51136B #6B2513 #2D6B13 #13596B
split-complementary
#51136B #596B13 #136B25
monochromatic
#14051A #2A0A37 #51136B #781C9F #A025D3

Accessibility & contrast

On white

12.69
#51136B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#51136B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51136B
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51136B#FFFFFF#000000##FFFFFF
##51136B1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#083469
Tritanopia (blue-blind)
#4E283F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51136b;
/* rgb */ color: rgb(81, 19, 107);
/* oklch */ color: oklch(33.9% 0.145 313.3);
Tailwind
colors: {
  custom: {
    50: '#865996',
    500: '#51136b',
    950: '#000000',
  },
}
SCSS
$custom: #51136b;
$custom-light: #865996;
$custom-dark: #000000;
JSON
{
  "hex": "#51136b",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 107
  },
  "hsl": {
    "h": 282.273,
    "s": 69.841,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33895,
    "c": 0.14548,
    "h": 313.3
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#51136B
secondary
#57A238
accent
#ED3B70
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51136B

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

Preview Lab → · Contrast checker → · Palette generator →

#51136B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva