#51199E#51199E

#51199E is a dark, vivid violet. Relative luminance 0.049; OKLCH L 39.0% C 0.192 H 294.5°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#51199E
RGBrgb(81, 25, 158)
HSLhsl(265, 73%, 36%)
HSVhsv(265, 84%, 62%)
CMYKcmyk(48.7%, 84.2%, 0%, 38%)
CIE-LABlab(26.49, 52.21, -60.78)
CIE-LCHlch(26.49, 80.12, 310.67°)
OKLaboklab(39.04% 0.0794 -0.1744)
OKLCHoklch(39.04% 0.192 294.5)
XYZxyz(9.9108, 4.9129, 32.7672)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51199E #669E19
analogous
#19239E #51199E #93199E
triadic
#51199E #9E5119 #199E51
tetradic
#51199E #9E1923 #669E19 #199E93
square
#51199E #9E1923 #669E19 #199E93
split-complementary
#51199E #9E9319 #239E19
monochromatic
#1B0834 #361169 #51199E #6C21D3 #8D4EE3

Accessibility & contrast

On white

10.59
#51199E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#51199E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51199E
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51199E#FFFFFF#000000##FFFFFF
##51199E1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A2
Deuteranopia (green-blind)
#003C9C
Tritanopia (blue-blind)
#39415E
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51199e;
/* rgb */ color: rgb(81, 25, 158);
/* oklch */ color: oklch(39.0% 0.192 294.5);
Tailwind
colors: {
  custom: {
    50: '#8b5fbc',
    500: '#51199e',
    950: '#000000',
  },
}
SCSS
$custom: #51199e;
$custom-light: #8b5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#51199e",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 158
  },
  "hsl": {
    "h": 265.263,
    "s": 72.678,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3904,
    "c": 0.19166,
    "h": 294.5
  },
  "luminance": 0.04913
}

Semantic roles & 50–950 ramp

primary
#51199E
secondary
#93C54E
accent
#EF38A2
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #51199E

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

Preview Lab → · Contrast checker → · Palette generator →

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