#51279A#51279A

#51279A is a dark, vivid violet. Relative luminance 0.055; OKLCH L 40.1% C 0.174 H 293.7°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#51279A
RGBrgb(81, 39, 154)
HSLhsl(262, 60%, 38%)
HSVhsv(262, 75%, 60%)
CMYKcmyk(47.4%, 74.7%, 0%, 39.6%)
CIE-LABlab(28.20, 45.12, -55.51)
CIE-LCHlch(28.20, 71.54, 309.10°)
OKLaboklab(40.12% 0.0698 -0.1591)
OKLCHoklch(40.12% 0.174 293.7)
XYZxyz(9.9500, 5.5332, 31.1093)
Luminance0.0553 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51279A #709A27
analogous
#27379A #51279A #8A279A
triadic
#51279A #9A5127 #279A51
tetradic
#51279A #9A2737 #709A27 #279A8A
square
#51279A #9A2737 #709A27 #279A8A
split-complementary
#51279A #9A8A27 #379A27
monochromatic
#1E0E38 #371B69 #51279A #6B33CB #8E64D8

Accessibility & contrast

On white

9.97
#51279A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#51279A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51279A
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51279A#FFFFFF#000000##FFFFFF
##51279A1.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#3B455E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51279a;
/* rgb */ color: rgb(81, 39, 154);
/* oklch */ color: oklch(40.1% 0.174 293.7);
Tailwind
colors: {
  custom: {
    50: '#8965b9',
    500: '#51279a',
    950: '#000000',
  },
}
SCSS
$custom: #51279a;
$custom-light: #8965b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51279a",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 154
  },
  "hsl": {
    "h": 261.913,
    "s": 59.585,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40123,
    "c": 0.17378,
    "h": 293.7
  },
  "luminance": 0.05533
}

Semantic roles & 50–950 ramp

primary
#51279A
secondary
#9BBD5F
accent
#E345A9
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51279A

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

Preview Lab → · Contrast checker → · Palette generator →

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