#51186F#51186F

#51186F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.144 H 310.9°. Best body text is #FFFFFF at 12.28:1 contrast (WCAG AA passes).

Color values

HEX#51186F
RGBrgb(81, 24, 111)
HSLhsl(279, 64%, 26%)
HSVhsv(279, 78%, 44%)
CMYKcmyk(27%, 78.4%, 0%, 56.5%)
CIE-LABlab(22.13, 41.06, -38.41)
CIE-LCHlch(22.13, 56.23, 316.91°)
OKLaboklab(34.7% 0.0941 -0.1088)
OKLCHoklch(34.7% 0.144 310.9)
XYZxyz(6.5887, 3.5505, 15.3741)
Luminance0.0355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51186F #366F18
analogous
#26186F #51186F #6F1862
triadic
#51186F #6F5118 #186F51
tetradic
#51186F #6F2618 #366F18 #18626F
square
#51186F #6F2618 #366F18 #18626F
split-complementary
#51186F #626F18 #186F26
monochromatic
#120519 #2C0D3D #51186F #7623A1 #9A2FD2

Accessibility & contrast

On white

12.28
#51186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#51186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51186F
12.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51186F#FFFFFF#000000##FFFFFF
##51186F1.0012.281.7112.28
#FFFFFF12.281.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#06366D
Tritanopia (blue-blind)
#4D2C42
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51186f;
/* rgb */ color: rgb(81, 24, 111);
/* oklch */ color: oklch(34.7% 0.144 310.9);
Tailwind
colors: {
  custom: {
    50: '#865c99',
    500: '#51186f',
    950: '#000000',
  },
}
SCSS
$custom: #51186f;
$custom-light: #865c99;
$custom-dark: #000000;
JSON
{
  "hex": "#51186f",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 279.31,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34704,
    "c": 0.14386,
    "h": 310.9
  },
  "luminance": 0.0355
}

Semantic roles & 50–950 ramp

primary
#51186F
secondary
#62A53E
accent
#E7407A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #51186F

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

Preview Lab → · Contrast checker → · Palette generator →

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