#51289A#51289A

#51289A is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.2% C 0.173 H 293.5°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).

Color values

HEX#51289A
RGBrgb(81, 40, 154)
HSLhsl(262, 59%, 38%)
HSVhsv(262, 74%, 60%)
CMYKcmyk(47.4%, 74%, 0%, 39.6%)
CIE-LABlab(28.38, 44.62, -55.23)
CIE-LCHlch(28.38, 71.00, 308.94°)
OKLaboklab(40.25% 0.0689 -0.1583)
OKLCHoklch(40.25% 0.173 293.5)
XYZxyz(9.9833, 5.5997, 31.1204)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51289A #719A28
analogous
#28389A #51289A #8A289A
triadic
#51289A #9A5128 #289A51
tetradic
#51289A #9A2838 #719A28 #289A8A
square
#51289A #9A2838 #719A28 #289A8A
split-complementary
#51289A #9A8A28 #389A28
monochromatic
#1E0F39 #371B69 #51289A #6B35CA #8E65D7

Accessibility & contrast

On white

9.91
#51289A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#51289A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51289A
9.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51289A#FFFFFF#000000##FFFFFF
##51289A1.009.912.129.91
#FFFFFF9.911.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51289a;
/* rgb */ color: rgb(81, 40, 154);
/* oklch */ color: oklch(40.2% 0.173 293.5);
Tailwind
colors: {
  custom: {
    50: '#8966b9',
    500: '#51289a',
    950: '#000000',
  },
}
SCSS
$custom: #51289a;
$custom-light: #8966b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51289a",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 154
  },
  "hsl": {
    "h": 261.579,
    "s": 58.763,
    "l": 38.039
  },
  "oklch": {
    "l": 0.40248,
    "c": 0.17264,
    "h": 293.5
  },
  "luminance": 0.056
}

Semantic roles & 50–950 ramp

primary
#51289A
secondary
#9CBD61
accent
#E246AA
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51289A

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

Preview Lab → · Contrast checker → · Palette generator →

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