#51408D#51408D

#51408D is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.0% C 0.123 H 290.5°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#51408D
RGBrgb(81, 64, 141)
HSLhsl(253, 38%, 40%)
HSVhsv(253, 55%, 55%)
CMYKcmyk(42.6%, 54.6%, 0%, 44.7%)
CIE-LABlab(32.57, 26.97, -40.48)
CIE-LCHlch(32.57, 48.64, 303.67°)
OKLaboklab(42.98% 0.0429 -0.115)
OKLCHoklch(42.98% 0.123 290.5)
XYZxyz(10.0331, 7.3389, 26.0821)
Luminance0.0734 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51408D #7C8D40
analogous
#40558D #51408D #78408D
triadic
#51408D #8D5140 #408D51
tetradic
#51408D #8D4055 #7C8D40 #408D78
square
#51408D #8D4055 #7C8D40 #408D78
split-complementary
#51408D #8D7840 #558D40
monochromatic
#211A39 #392D63 #51408D #6C57B3 #9181C6

Accessibility & contrast

On white

8.51
#51408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.47
#51408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51408D
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51408D#FFFFFF#000000##FFFFFF
##51408D1.008.512.478.51
#FFFFFF8.511.0021.001.00
#0000002.4721.001.0021.00
##FFFFFF8.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4E90
Deuteranopia (green-blind)
#1F4B8B
Tritanopia (blue-blind)
#405060
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #51408d;
/* rgb */ color: rgb(81, 64, 141);
/* oklch */ color: oklch(43.0% 0.123 290.5);
Tailwind
colors: {
  custom: {
    50: '#8675af',
    500: '#51408d',
    950: '#000000',
  },
}
SCSS
$custom: #51408d;
$custom-light: #8675af;
$custom-dark: #000000;
JSON
{
  "hex": "#51408d",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 253.247,
    "s": 37.561,
    "l": 40.196
  },
  "oklch": {
    "l": 0.42975,
    "c": 0.1227,
    "h": 290.5
  },
  "luminance": 0.07339
}

Semantic roles & 50–950 ramp

primary
#51408D
secondary
#A4B078
accent
#CE5AB4
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0B0810
muted
#7C7B7F

Preview Lab

Preview with #51408D

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

Preview Lab → · Contrast checker → · Palette generator →

#51408D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva