#51198E#51198E

#51198E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.175 H 299.1°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#51198E
RGBrgb(81, 25, 142)
HSLhsl(269, 70%, 33%)
HSVhsv(269, 82%, 56%)
CMYKcmyk(43%, 82.4%, 0%, 44.3%)
CIE-LABlab(24.94, 48.18, -53.46)
CIE-LCHlch(24.94, 71.96, 312.03°)
OKLaboklab(37.51% 0.085 -0.153)
OKLCHoklch(37.51% 0.175 299.1)
XYZxyz(8.6222, 4.3975, 25.9805)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51198E #568E19
analogous
#191B8E #51198E #8B198E
triadic
#51198E #8E5119 #198E51
tetradic
#51198E #8E191B #568E19 #198E8B
square
#51198E #8E191B #568E19 #198E8B
split-complementary
#51198E #8E8B19 #1B8E19
monochromatic
#160726 #33105A #51198E #6F22C2 #8D43DE

Accessibility & contrast

On white

11.17
#51198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#51198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51198E
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51198E#FFFFFF#000000##FFFFFF
##51198E1.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.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: #51198e;
/* rgb */ color: rgb(81, 25, 142);
/* oklch */ color: oklch(37.5% 0.175 299.1);
Tailwind
colors: {
  custom: {
    50: '#895eb0',
    500: '#51198e',
    950: '#000000',
  },
}
SCSS
$custom: #51198e;
$custom-light: #895eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51198e",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 268.718,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37508,
    "c": 0.17501,
    "h": 299.1
  },
  "luminance": 0.04398
}

Semantic roles & 50–950 ramp

primary
#51198E
secondary
#84BF44
accent
#ED3B98
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #51198E

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

Preview Lab → · Contrast checker → · Palette generator →

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