#51188E#51188E

#51188E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.176 H 299.2°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#51188E
RGBrgb(81, 24, 142)
HSLhsl(269, 71%, 33%)
HSVhsv(269, 83%, 56%)
CMYKcmyk(43%, 83.1%, 0%, 44.3%)
CIE-LABlab(24.81, 48.56, -53.67)
CIE-LCHlch(24.81, 72.38, 312.14°)
OKLaboklab(37.42% 0.0857 -0.1536)
OKLCHoklch(37.42% 0.176 299.2)
XYZxyz(8.6012, 4.3555, 25.9735)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51188E #558E18
analogous
#181A8E #51188E #8C188E
triadic
#51188E #8E5118 #188E51
tetradic
#51188E #8E181A #558E18 #188E8C
square
#51188E #8E181A #558E18 #188E8C
split-complementary
#51188E #8E8C18 #1A8E18
monochromatic
#150625 #330F5A #51188E #6F21C2 #8E41DF

Accessibility & contrast

On white

11.22
#51188E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#51188E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51188E
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51188E#FFFFFF#000000##FFFFFF
##51188E1.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B91
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#423A54
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51188e;
/* rgb */ color: rgb(81, 24, 142);
/* oklch */ color: oklch(37.4% 0.176 299.2);
Tailwind
colors: {
  custom: {
    50: '#895db0',
    500: '#51188e',
    950: '#000000',
  },
}
SCSS
$custom: #51188e;
$custom-light: #895db0;
$custom-dark: #000000;
JSON
{
  "hex": "#51188e",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 142
  },
  "hsl": {
    "h": 268.983,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37417,
    "c": 0.17591,
    "h": 299.2
  },
  "luminance": 0.04356
}

Semantic roles & 50–950 ramp

primary
#51188E
secondary
#83C042
accent
#EE3A97
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #51188E

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

Preview Lab → · Contrast checker → · Palette generator →

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