#51428C#51428C

#51428C is a dark, moderate violet. Relative luminance 0.075; OKLCH L 43.3% C 0.118 H 289.9°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#51428C
RGBrgb(81, 66, 140)
HSLhsl(252, 36%, 40%)
HSVhsv(252, 53%, 55%)
CMYKcmyk(42.1%, 52.9%, 0%, 45.1%)
CIE-LABlab(33.00, 25.40, -39.16)
CIE-LCHlch(33.00, 46.68, 302.97°)
OKLaboklab(43.28% 0.0402 -0.1111)
OKLCHoklch(43.28% 0.118 289.9)
XYZxyz(10.0739, 7.5389, 25.7302)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51428C #7D8C42
analogous
#42588C #51428C #76428C
triadic
#51428C #8C5142 #428C51
tetradic
#51428C #8C4258 #7D8C42 #428C76
square
#51428C #8C4258 #7D8C42 #428C76
split-complementary
#51428C #8C7642 #588C42
monochromatic
#211B39 #392E62 #51428C #6C5AB1 #9184C5

Accessibility & contrast

On white

8.37
#51428C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#51428C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51428C
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51428C#FFFFFF#000000##FFFFFF
##51428C1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#224F8F
Deuteranopia (green-blind)
#244C8A
Tritanopia (blue-blind)
#415160
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #51428c;
/* rgb */ color: rgb(81, 66, 140);
/* oklch */ color: oklch(43.3% 0.118 289.9);
Tailwind
colors: {
  custom: {
    50: '#8576ae',
    500: '#51428c',
    950: '#000000',
  },
}
SCSS
$custom: #51428c;
$custom-light: #8576ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51428c",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 252.162,
    "s": 35.922,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4328,
    "c": 0.11814,
    "h": 289.9
  },
  "luminance": 0.07539
}

Semantic roles & 50–950 ramp

primary
#51428C
secondary
#A5B07A
accent
#CC5CB5
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #51428C

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

Preview Lab → · Contrast checker → · Palette generator →

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