#51186D#51186D

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

Color values

HEX#51186D
RGBrgb(81, 24, 109)
HSLhsl(280, 64%, 26%)
HSVhsv(280, 78%, 43%)
CMYKcmyk(25.7%, 78%, 0%, 57.3%)
CIE-LABlab(21.97, 40.60, -37.37)
CIE-LCHlch(21.97, 55.18, 317.37°)
OKLaboklab(34.54% 0.0945 -0.1057)
OKLCHoklch(34.54% 0.142 311.8)
XYZxyz(6.4798, 3.5069, 14.8006)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51186D #346D18
analogous
#26186D #51186D #6D185E
triadic
#51186D #6D5118 #186D51
tetradic
#51186D #6D2618 #346D18 #185E6D
square
#51186D #6D2618 #346D18 #185E6D
split-complementary
#51186D #5E6D18 #186D26
monochromatic
#130619 #2C0D3B #51186D #76239F #9B2ED1

Accessibility & contrast

On white

12.34
#51186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51186D
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51186D#FFFFFF#000000##FFFFFF
##51186D1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326F
Deuteranopia (green-blind)
#0B366B
Tritanopia (blue-blind)
#4E2B41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51186d;
/* rgb */ color: rgb(81, 24, 109);
/* oklch */ color: oklch(34.5% 0.142 311.8);
Tailwind
colors: {
  custom: {
    50: '#855b97',
    500: '#51186d',
    950: '#000000',
  },
}
SCSS
$custom: #51186d;
$custom-light: #855b97;
$custom-dark: #000000;
JSON
{
  "hex": "#51186d",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 280.235,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34544,
    "c": 0.1418,
    "h": 311.8
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#51186D
secondary
#5FA33E
accent
#E74178
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51186D

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

Preview Lab → · Contrast checker → · Palette generator →

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