#51199C#51199C

#51199C is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.8% C 0.190 H 295.0°. Best body text is #FFFFFF at 10.67:1 contrast (WCAG AA passes).

Color values

HEX#51199C
RGBrgb(81, 25, 156)
HSLhsl(266, 72%, 35%)
HSVhsv(266, 84%, 61%)
CMYKcmyk(48.1%, 84%, 0%, 38.8%)
CIE-LABlab(26.29, 51.71, -59.88)
CIE-LCHlch(26.29, 79.11, 310.81°)
OKLaboklab(38.85% 0.0801 -0.1718)
OKLCHoklch(38.85% 0.19 295)
XYZxyz(9.7401, 4.8446, 31.8680)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51199C #649C19
analogous
#19229C #51199C #92199C
triadic
#51199C #9C5119 #199C51
tetradic
#51199C #9C1922 #649C19 #199C92
square
#51199C #9C1922 #649C19 #199C92
split-complementary
#51199C #9C9219 #229C19
monochromatic
#1A0833 #361167 #51199C #6C21D1 #8D4DE2

Accessibility & contrast

On white

10.67
#51199C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#51199C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51199C
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51199C#FFFFFF#000000##FFFFFF
##51199C1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9F
Deuteranopia (green-blind)
#003C9A
Tritanopia (blue-blind)
#3B405C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #51199c;
/* rgb */ color: rgb(81, 25, 156);
/* oklch */ color: oklch(38.8% 0.190 295.0);
Tailwind
colors: {
  custom: {
    50: '#8a5fba',
    500: '#51199c',
    950: '#000000',
  },
}
SCSS
$custom: #51199c;
$custom-light: #8a5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#51199c",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 156
  },
  "hsl": {
    "h": 265.649,
    "s": 72.376,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38845,
    "c": 0.18957,
    "h": 295
  },
  "luminance": 0.04845
}

Semantic roles & 50–950 ramp

primary
#51199C
secondary
#91C44C
accent
#EF39A1
background
#F9F5FB
surface
#F1EAF6
border
#CBC6D0
text
#0D0512
muted
#7E7981

Preview Lab

Preview with #51199C

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

Preview Lab → · Contrast checker → · Palette generator →

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