#51186C#51186C

#51186C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.141 H 312.3°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#51186C
RGBrgb(81, 24, 108)
HSLhsl(281, 64%, 26%)
HSVhsv(281, 78%, 42%)
CMYKcmyk(25%, 77.8%, 0%, 57.6%)
CIE-LABlab(21.89, 40.37, -36.85)
CIE-LCHlch(21.89, 54.65, 317.61°)
OKLaboklab(34.47% 0.0947 -0.1042)
OKLCHoklch(34.47% 0.141 312.3)
XYZxyz(6.4263, 3.4855, 14.5187)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51186C #336C18
analogous
#27186C #51186C #6C185D
triadic
#51186C #6C5118 #186C51
tetradic
#51186C #6C2718 #336C18 #185D6C
square
#51186C #6C2718 #336C18 #185D6C
split-complementary
#51186C #5D6C18 #186C27
monochromatic
#130619 #2B0D3A #51186C #77239E #9C2ED0

Accessibility & contrast

On white

12.37
#51186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#51186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51186C
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51186C#FFFFFF#000000##FFFFFF
##51186C1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#0D366A
Tritanopia (blue-blind)
#4E2B41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51186c;
/* rgb */ color: rgb(81, 24, 108);
/* oklch */ color: oklch(34.5% 0.141 312.3);
Tailwind
colors: {
  custom: {
    50: '#855b97',
    500: '#51186c',
    950: '#000000',
  },
}
SCSS
$custom: #51186c;
$custom-light: #855b97;
$custom-dark: #000000;
JSON
{
  "hex": "#51186c",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 280.714,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34465,
    "c": 0.14078,
    "h": 312.3
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#51186C
secondary
#5EA23E
accent
#E74176
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51186C

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

Preview Lab → · Contrast checker → · Palette generator →

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