#51409B#51409B

#51409B is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.0% C 0.142 H 287.7°. Best body text is #FFFFFF at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#51409B
RGBrgb(81, 64, 155)
HSLhsl(251, 42%, 43%)
HSVhsv(251, 59%, 61%)
CMYKcmyk(47.7%, 58.7%, 0%, 39.2%)
CIE-LABlab(33.53, 31.23, -47.47)
CIE-LCHlch(33.53, 56.82, 303.34°)
OKLaboklab(43.99% 0.0432 -0.1355)
OKLCHoklch(43.99% 0.142 287.7)
XYZxyz(11.1414, 7.7822, 31.9191)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51409B #8A9B40
analogous
#405C9B #51409B #7E409B
triadic
#51409B #9B5140 #409B51
tetradic
#51409B #9B405C #8A9B40 #409B7E
square
#51409B #9B405C #8A9B40 #409B7E
split-complementary
#51409B #9B7E40 #5C9B40
monochromatic
#241C44 #3A2E70 #51409B #6E5CBC #9588CE

Accessibility & contrast

On white

8.21
#51409B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#51409B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51409B
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51409B#FFFFFF#000000##FFFFFF
##51409B1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519E
Deuteranopia (green-blind)
#004C99
Tritanopia (blue-blind)
#395467
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #51409b;
/* rgb */ color: rgb(81, 64, 155);
/* oklch */ color: oklch(44.0% 0.142 287.7);
Tailwind
colors: {
  custom: {
    50: '#8775b9',
    500: '#51409b',
    950: '#000000',
  },
}
SCSS
$custom: #51409b;
$custom-light: #8775b9;
$custom-dark: #000000;
JSON
{
  "hex": "#51409b",
  "rgb": {
    "r": 81,
    "g": 64,
    "b": 155
  },
  "hsl": {
    "h": 251.209,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.43992,
    "c": 0.14224,
    "h": 287.7
  },
  "luminance": 0.07783
}

Semantic roles & 50–950 ramp

primary
#51409B
secondary
#AEB87E
accent
#D156BA
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #51409B

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

Preview Lab → · Contrast checker → · Palette generator →

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