#51168C#51168C

#51168C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.176 H 300.0°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#51168C
RGBrgb(81, 22, 140)
HSLhsl(270, 73%, 32%)
HSVhsv(270, 84%, 55%)
CMYKcmyk(42.1%, 84.3%, 0%, 45.1%)
CIE-LABlab(24.37, 48.80, -53.14)
CIE-LCHlch(24.37, 72.15, 312.56°)
OKLaboklab(37.06% 0.0879 -0.152)
OKLCHoklch(37.06% 0.176 300)
XYZxyz(8.4127, 4.2165, 25.1765)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51168C #518C16
analogous
#16168C #51168C #8C168C
triadic
#51168C #8C5116 #168C51
tetradic
#51168C #8C1616 #518C16 #168C8C
square
#51168C #8C1616 #518C16 #168C8C
split-complementary
#51168C #8C8C16 #168C16
monochromatic
#140522 #320E57 #51168C #701EC1 #8E3CE0

Accessibility & contrast

On white

11.39
#51168C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#51168C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51168C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51168C#FFFFFF#000000##FFFFFF
##51168C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00398A
Tritanopia (blue-blind)
#433853
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51168c;
/* rgb */ color: rgb(81, 22, 140);
/* oklch */ color: oklch(37.1% 0.176 300.0);
Tailwind
colors: {
  custom: {
    50: '#885caf',
    500: '#51168c',
    950: '#000000',
  },
}
SCSS
$custom: #51168c;
$custom-light: #885caf;
$custom-dark: #000000;
JSON
{
  "hex": "#51168c",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 140
  },
  "hsl": {
    "h": 270,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37056,
    "c": 0.1756,
    "h": 300
  },
  "luminance": 0.04217
}

Semantic roles & 50–950 ramp

primary
#51168C
secondary
#7FC03E
accent
#F03894
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #51168C

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

Preview Lab → · Contrast checker → · Palette generator →

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