#51279E#51279E

#51279E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.178 H 292.7°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#51279E
RGBrgb(81, 39, 158)
HSLhsl(261, 60%, 39%)
HSVhsv(261, 75%, 62%)
CMYKcmyk(48.7%, 75.3%, 0%, 38%)
CIE-LABlab(28.56, 46.22, -57.37)
CIE-LCHlch(28.56, 73.67, 308.86°)
OKLaboklab(40.49% 0.0688 -0.1646)
OKLCHoklch(40.49% 0.178 292.7)
XYZxyz(10.2887, 5.6686, 32.8932)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51279E #749E27
analogous
#27399E #51279E #8C279E
triadic
#51279E #9E5127 #279E51
tetradic
#51279E #9E2739 #749E27 #279E8C
square
#51279E #9E2739 #749E27 #279E8C
split-complementary
#51279E #9E8C27 #399E27
monochromatic
#1F0F3C #381B6D #51279E #6B35CD #8F66D9

Accessibility & contrast

On white

9.84
#51279E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51279E
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51279E#FFFFFF#000000##FFFFFF
##51279E1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#394761
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51279e;
/* rgb */ color: rgb(81, 39, 158);
/* oklch */ color: oklch(40.5% 0.178 292.7);
Tailwind
colors: {
  custom: {
    50: '#8a66bc',
    500: '#51279e',
    950: '#000000',
  },
}
SCSS
$custom: #51279e;
$custom-light: #8a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51279e",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 158
  },
  "hsl": {
    "h": 261.176,
    "s": 60.406,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40486,
    "c": 0.17839,
    "h": 292.7
  },
  "luminance": 0.05669
}

Semantic roles & 50–950 ramp

primary
#51279E
secondary
#9EBF62
accent
#E444AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51279E

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

Preview Lab → · Contrast checker → · Palette generator →

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