#51279D#51279D

#51279D is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.4% C 0.177 H 292.9°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#51279D
RGBrgb(81, 39, 157)
HSLhsl(261, 60%, 38%)
HSVhsv(261, 75%, 62%)
CMYKcmyk(48.4%, 75.2%, 0%, 38.4%)
CIE-LABlab(28.47, 45.95, -56.91)
CIE-LCHlch(28.47, 73.14, 308.92°)
OKLaboklab(40.39% 0.0691 -0.1632)
OKLCHoklch(40.39% 0.177 292.9)
XYZxyz(10.2030, 5.6343, 32.4417)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51279D #739D27
analogous
#27389D #51279D #8C279D
triadic
#51279D #9D5127 #279D51
tetradic
#51279D #9D2738 #739D27 #279D8C
square
#51279D #9D2738 #739D27 #279D8C
split-complementary
#51279D #9D8C27 #389D27
monochromatic
#1E0F3B #381B6C #51279D #6B35CD #8F66D9

Accessibility & contrast

On white

9.87
#51279D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#51279D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51279D
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51279D#FFFFFF#000000##FFFFFF
##51279D1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#394760
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51279d;
/* rgb */ color: rgb(81, 39, 157);
/* oklch */ color: oklch(40.4% 0.177 292.9);
Tailwind
colors: {
  custom: {
    50: '#8a66bb',
    500: '#51279d',
    950: '#000000',
  },
}
SCSS
$custom: #51279d;
$custom-light: #8a66bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51279d",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 157
  },
  "hsl": {
    "h": 261.356,
    "s": 60.204,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40395,
    "c": 0.17725,
    "h": 292.9
  },
  "luminance": 0.05635
}

Semantic roles & 50–950 ramp

primary
#51279D
secondary
#9DBF61
accent
#E344AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51279D

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

Preview Lab → · Contrast checker → · Palette generator →

#51279D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva