#51279C#51279C

#51279C is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.176 H 293.2°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#51279C
RGBrgb(81, 39, 156)
HSLhsl(262, 60%, 38%)
HSVhsv(262, 75%, 61%)
CMYKcmyk(48.1%, 75%, 0%, 38.8%)
CIE-LABlab(28.38, 45.67, -56.44)
CIE-LCHlch(28.38, 72.61, 308.98°)
OKLaboklab(40.3% 0.0693 -0.1619)
OKLCHoklch(40.3% 0.176 293.2)
XYZxyz(10.1179, 5.6003, 31.9939)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51279C #729C27
analogous
#27389C #51279C #8B279C
triadic
#51279C #9C5127 #279C51
tetradic
#51279C #9C2738 #729C27 #279C8B
square
#51279C #9C2738 #729C27 #279C8B
split-complementary
#51279C #9C8B27 #389C27
monochromatic
#1E0F3A #381B6B #51279C #6B34CC #8E65D8

Accessibility & contrast

On white

9.90
#51279C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#51279C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51279C
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51279C#FFFFFF#000000##FFFFFF
##51279C1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#3A465F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51279c;
/* rgb */ color: rgb(81, 39, 156);
/* oklch */ color: oklch(40.3% 0.176 293.2);
Tailwind
colors: {
  custom: {
    50: '#8965ba',
    500: '#51279c',
    950: '#000000',
  },
}
SCSS
$custom: #51279c;
$custom-light: #8965ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51279c",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 156
  },
  "hsl": {
    "h": 261.538,
    "s": 60,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40304,
    "c": 0.17609,
    "h": 293.2
  },
  "luminance": 0.05601
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51279C

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

Preview Lab → · Contrast checker → · Palette generator →

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