#51279B#51279B

#51279B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.175 H 293.4°. Best body text is #FFFFFF at 9.94:1 contrast (WCAG AA passes).

Color values

HEX#51279B
RGBrgb(81, 39, 155)
HSLhsl(262, 60%, 38%)
HSVhsv(262, 75%, 61%)
CMYKcmyk(47.7%, 74.8%, 0%, 39.2%)
CIE-LABlab(28.29, 45.39, -55.98)
CIE-LCHlch(28.29, 72.07, 309.04°)
OKLaboklab(40.21% 0.0696 -0.1605)
OKLCHoklch(40.21% 0.175 293.4)
XYZxyz(10.0336, 5.5666, 31.5498)
Luminance0.0557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51279B #719B27
analogous
#27379B #51279B #8B279B
triadic
#51279B #9B5127 #279B51
tetradic
#51279B #9B2737 #719B27 #279B8B
square
#51279B #9B2737 #719B27 #279B8B
split-complementary
#51279B #9B8B27 #379B27
monochromatic
#1E0E39 #371B6A #51279B #6B33CC #8E64D8

Accessibility & contrast

On white

9.94
#51279B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51279B
9.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51279B#FFFFFF#000000##FFFFFF
##51279B1.009.942.119.94
#FFFFFF9.941.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#3B465F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51279b;
/* rgb */ color: rgb(81, 39, 155);
/* oklch */ color: oklch(40.2% 0.175 293.4);
Tailwind
colors: {
  custom: {
    50: '#8965b9',
    500: '#51279b',
    950: '#000000',
  },
}
SCSS
$custom: #51279b;
$custom-light: #8965b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51279b",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 155
  },
  "hsl": {
    "h": 261.724,
    "s": 59.794,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40213,
    "c": 0.17494,
    "h": 293.4
  },
  "luminance": 0.05567
}

Semantic roles & 50–950 ramp

primary
#51279B
secondary
#9CBE60
accent
#E345AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51279B

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

Preview Lab → · Contrast checker → · Palette generator →

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