#51407E#51407E

#51407E is a dark, moderate violet. Relative luminance 0.069; OKLCH L 42.0% C 0.101 H 294.3°. Best body text is #FFFFFF at 8.81:1 contrast (WCAG AA passes).

Color values

HEX#51407E
RGBrgb(81, 64, 126)
HSLhsl(256, 33%, 37%)
HSVhsv(256, 49%, 49%)
CMYKcmyk(35.7%, 49.2%, 0%, 50.6%)
CIE-LABlab(31.63, 22.53, -32.69)
CIE-LCHlch(31.63, 39.70, 304.57°)
OKLaboklab(41.97% 0.0415 -0.0921)
OKLCHoklch(41.97% 0.101 294.3)
XYZxyz(8.9917, 6.9223, 20.5970)
Luminance0.0692 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51407E #6D7E40
analogous
#404E7E #51407E #70407E
triadic
#51407E #7E5140 #407E51
tetradic
#51407E #7E404E #6D7E40 #407E70
square
#51407E #7E404E #6D7E40 #407E70
split-complementary
#51407E #7E7040 #4E7E40
monochromatic
#1D172D #372B55 #51407E #6B55A7 #8E7CBC

Accessibility & contrast

On white

8.81
#51407E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#51407E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51407E
8.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51407E#FFFFFF#000000##FFFFFF
##51407E1.008.812.388.81
#FFFFFF8.811.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4B80
Deuteranopia (green-blind)
#2E497D
Tritanopia (blue-blind)
#464C59
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #51407e;
/* rgb */ color: rgb(81, 64, 126);
/* oklch */ color: oklch(42.0% 0.101 294.3);
Tailwind
colors: {
  custom: {
    50: '#8475a4',
    500: '#51407e',
    950: '#000000',
  },
}
SCSS
$custom: #51407e;
$custom-light: #8475a4;
$custom-dark: #000000;
JSON
{
  "hex": "#51407e",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 126
  },
  "hsl": {
    "h": 256.452,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.41973,
    "c": 0.10106,
    "h": 294.3
  },
  "luminance": 0.06922
}

Semantic roles & 50–950 ramp

primary
#51407E
secondary
#99A773
accent
#C95FAC
background
#F8F7FA
surface
#EFEDF4
border
#CAC8CE
text
#0B080F
muted
#7C7B7F

Preview Lab

Preview with #51407E

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

Preview Lab → · Contrast checker → · Palette generator →

#51407E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva