#51289B#51289B

#51289B is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.174 H 293.3°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#51289B
RGBrgb(81, 40, 155)
HSLhsl(261, 59%, 38%)
HSVhsv(261, 74%, 61%)
CMYKcmyk(47.7%, 74.2%, 0%, 39.2%)
CIE-LABlab(28.47, 44.90, -55.69)
CIE-LCHlch(28.47, 71.54, 308.87°)
OKLaboklab(40.34% 0.0687 -0.1597)
OKLCHoklch(40.34% 0.174 293.3)
XYZxyz(10.0669, 5.6332, 31.5609)
Luminance0.0563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51289B #729B28
analogous
#28399B #51289B #8A289B
triadic
#51289B #9B5128 #289B51
tetradic
#51289B #9B2839 #729B28 #289B8A
square
#51289B #9B2839 #729B28 #289B8A
split-complementary
#51289B #9B8A28 #399B28
monochromatic
#1E0F3A #381B6A #51289B #6B35CB #8E66D7

Accessibility & contrast

On white

9.87
#51289B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#51289B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51289B
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51289B#FFFFFF#000000##FFFFFF
##51289B1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.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: #51289b;
/* rgb */ color: rgb(81, 40, 155);
/* oklch */ color: oklch(40.3% 0.174 293.3);
Tailwind
colors: {
  custom: {
    50: '#8966b9',
    500: '#51289b',
    950: '#000000',
  },
}
SCSS
$custom: #51289b;
$custom-light: #8966b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51289b",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 155
  },
  "hsl": {
    "h": 261.391,
    "s": 58.974,
    "l": 38.235
  },
  "oklch": {
    "l": 0.40337,
    "c": 0.17381,
    "h": 293.3
  },
  "luminance": 0.05633
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51289B

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

Preview Lab → · Contrast checker → · Palette generator →

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