#51429C#51429C

#51429C is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.4% C 0.141 H 286.8°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#51429C
RGBrgb(81, 66, 156)
HSLhsl(250, 41%, 44%)
HSVhsv(250, 58%, 61%)
CMYKcmyk(48.1%, 57.7%, 0%, 38.8%)
CIE-LABlab(34.08, 30.30, -47.18)
CIE-LCHlch(34.08, 56.08, 302.71°)
OKLaboklab(44.42% 0.0408 -0.1347)
OKLCHoklch(44.42% 0.141 286.8)
XYZxyz(11.3406, 8.0456, 32.4015)
Luminance0.0805 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51429C #8D9C42
analogous
#42609C #51429C #7E429C
triadic
#51429C #9C5142 #429C51
tetradic
#51429C #9C4260 #8D9C42 #429C7E
square
#51429C #9C4260 #8D9C42 #429C7E
split-complementary
#51429C #9C7E42 #609C42
monochromatic
#241E46 #3B3071 #51429C #6F60BC #968BCE

Accessibility & contrast

On white

8.05
#51429C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#51429C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51429C
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51429C#FFFFFF#000000##FFFFFF
##51429C1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06529F
Deuteranopia (green-blind)
#044E9A
Tritanopia (blue-blind)
#385668
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #51429c;
/* rgb */ color: rgb(81, 66, 156);
/* oklch */ color: oklch(44.4% 0.141 286.8);
Tailwind
colors: {
  custom: {
    50: '#8777ba',
    500: '#51429c',
    950: '#000000',
  },
}
SCSS
$custom: #51429c;
$custom-light: #8777ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51429c",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 156
  },
  "hsl": {
    "h": 250,
    "s": 40.541,
    "l": 43.529
  },
  "oklch": {
    "l": 0.44422,
    "c": 0.14072,
    "h": 286.8
  },
  "luminance": 0.08046
}

Semantic roles & 50–950 ramp

primary
#51429C
secondary
#AFB981
accent
#D057BC
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #51429C

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

Preview Lab → · Contrast checker → · Palette generator →

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