#51196F#51196F

#51196F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.8% C 0.143 H 310.7°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#51196F
RGBrgb(81, 25, 111)
HSLhsl(279, 63%, 27%)
HSVhsv(279, 77%, 44%)
CMYKcmyk(27%, 77.5%, 0%, 56.5%)
CIE-LABlab(22.28, 40.63, -38.17)
CIE-LCHlch(22.28, 55.75, 316.79°)
OKLaboklab(34.81% 0.0931 -0.1081)
OKLCHoklch(34.81% 0.143 310.7)
XYZxyz(6.6097, 3.5924, 15.3811)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51196F #376F19
analogous
#26196F #51196F #6F1962
triadic
#51196F #6F5119 #196F51
tetradic
#51196F #6F2619 #376F19 #19626F
square
#51196F #6F2619 #376F19 #19626F
split-complementary
#51196F #626F19 #196F26
monochromatic
#120619 #2D0E3D #51196F #7524A1 #9932D1

Accessibility & contrast

On white

12.22
#51196F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#51196F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51196F
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51196F#FFFFFF#000000##FFFFFF
##51196F1.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#08366D
Tritanopia (blue-blind)
#4D2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51196f;
/* rgb */ color: rgb(81, 25, 111);
/* oklch */ color: oklch(34.8% 0.143 310.7);
Tailwind
colors: {
  custom: {
    50: '#855c99',
    500: '#51196f',
    950: '#000000',
  },
}
SCSS
$custom: #51196f;
$custom-light: #855c99;
$custom-dark: #000000;
JSON
{
  "hex": "#51196f",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 111
  },
  "hsl": {
    "h": 279.07,
    "s": 63.235,
    "l": 26.667
  },
  "oklch": {
    "l": 0.3481,
    "c": 0.14265,
    "h": 310.7
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#51196F
secondary
#63A43F
accent
#E6427B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #51196F

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

Preview Lab → · Contrast checker → · Palette generator →

#51196F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva