#51186B#51186B

#51186B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.140 H 312.7°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#51186B
RGBrgb(81, 24, 107)
HSLhsl(281, 63%, 26%)
HSVhsv(281, 78%, 42%)
CMYKcmyk(24.3%, 77.6%, 0%, 58%)
CIE-LABlab(21.81, 40.14, -36.32)
CIE-LCHlch(21.81, 54.13, 317.86°)
OKLaboklab(34.39% 0.0948 -0.1026)
OKLCHoklch(34.39% 0.14 312.7)
XYZxyz(6.3733, 3.4643, 14.2400)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51186B #326B18
analogous
#27186B #51186B #6B185B
triadic
#51186B #6B5118 #186B51
tetradic
#51186B #6B2718 #326B18 #185B6B
square
#51186B #6B2718 #326B18 #185B6B
split-complementary
#51186B #5B6B18 #186B27
monochromatic
#130619 #2B0D39 #51186B #77239D #9D2ECF

Accessibility & contrast

On white

12.41
#51186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#51186B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51186B
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51186B#FFFFFF#000000##FFFFFF
##51186B1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#0E3569
Tritanopia (blue-blind)
#4E2B40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51186b;
/* rgb */ color: rgb(81, 24, 107);
/* oklch */ color: oklch(34.4% 0.140 312.7);
Tailwind
colors: {
  custom: {
    50: '#855b96',
    500: '#51186b',
    950: '#000000',
  },
}
SCSS
$custom: #51186b;
$custom-light: #855b96;
$custom-dark: #000000;
JSON
{
  "hex": "#51186b",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 281.205,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34386,
    "c": 0.13975,
    "h": 312.7
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#51186B
secondary
#5DA13E
accent
#E64175
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51186B

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

Preview Lab → · Contrast checker → · Palette generator →

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