#51118E#51118E

#51118E is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.9% C 0.181 H 299.8°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#51118E
RGBrgb(81, 17, 142)
HSLhsl(271, 79%, 31%)
HSVhsv(271, 88%, 56%)
CMYKcmyk(43%, 88%, 0%, 44.3%)
CIE-LABlab(24.01, 50.92, -54.99)
CIE-LCHlch(24.01, 74.95, 312.80°)
OKLaboklab(36.86% 0.0903 -0.1574)
OKLCHoklch(36.86% 0.181 299.8)
XYZxyz(8.4750, 4.1031, 25.9314)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51118E #4E8E11
analogous
#12118E #51118E #8E118C
triadic
#51118E #8E5111 #118E51
tetradic
#51118E #8E1211 #4E8E11 #118C8E
square
#51118E #8E1211 #4E8E11 #118C8E
split-complementary
#51118E #8C8E11 #118E12
monochromatic
#130421 #320A57 #51118E #7018C5 #8F33E7

Accessibility & contrast

On white

11.53
#51118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#51118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51118E
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51118E#FFFFFF#000000##FFFFFF
##51118E1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003991
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#423753
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #51118e;
/* rgb */ color: rgb(81, 17, 142);
/* oklch */ color: oklch(36.9% 0.181 299.8);
Tailwind
colors: {
  custom: {
    50: '#895bb0',
    500: '#51118e',
    950: '#000000',
  },
}
SCSS
$custom: #51118e;
$custom-light: #895bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51118e",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 270.72,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.36863,
    "c": 0.18149,
    "h": 299.8
  },
  "luminance": 0.04103
}

Semantic roles & 50–950 ramp

primary
#51118E
secondary
#7CC238
accent
#F53392
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #51118E

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

Preview Lab → · Contrast checker → · Palette generator →

#51118E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva