#51186A#51186A

#51186A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.3% C 0.139 H 313.2°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#51186A
RGBrgb(81, 24, 106)
HSLhsl(282, 63%, 25%)
HSVhsv(282, 77%, 42%)
CMYKcmyk(23.6%, 77.4%, 0%, 58.4%)
CIE-LABlab(21.74, 39.91, -35.79)
CIE-LCHlch(21.74, 53.61, 318.11°)
OKLaboklab(34.31% 0.095 -0.1011)
OKLCHoklch(34.31% 0.139 313.2)
XYZxyz(6.3210, 3.4434, 13.9645)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51186A #316A18
analogous
#28186A #51186A #6A185A
triadic
#51186A #6A5118 #186A51
tetradic
#51186A #6A2818 #316A18 #185A6A
square
#51186A #6A2818 #316A18 #185A6A
split-complementary
#51186A #5A6A18 #186A28
monochromatic
#130619 #2B0D38 #51186A #77239C #9D2FCE

Accessibility & contrast

On white

12.44
#51186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51186A
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51186A#FFFFFF#000000##FFFFFF
##51186A1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316C
Deuteranopia (green-blind)
#103568
Tritanopia (blue-blind)
#4E2A40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51186a;
/* rgb */ color: rgb(81, 24, 106);
/* oklch */ color: oklch(34.3% 0.139 313.2);
Tailwind
colors: {
  custom: {
    50: '#855b95',
    500: '#51186a',
    950: '#000000',
  },
}
SCSS
$custom: #51186a;
$custom-light: #855b95;
$custom-dark: #000000;
JSON
{
  "hex": "#51186a",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 281.707,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.34308,
    "c": 0.13872,
    "h": 313.2
  },
  "luminance": 0.03443
}

Semantic roles & 50–950 ramp

primary
#51186A
secondary
#5CA03E
accent
#E64274
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51186A

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

Preview Lab → · Contrast checker → · Palette generator →

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