#51389A#51389A

#51389A is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.6% C 0.152 H 290.1°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#51389A
RGBrgb(81, 56, 154)
HSLhsl(255, 47%, 41%)
HSVhsv(255, 64%, 60%)
CMYKcmyk(47.4%, 63.6%, 0%, 39.6%)
CIE-LABlab(31.60, 35.78, -49.98)
CIE-LCHlch(31.60, 61.47, 305.60°)
OKLaboklab(42.56% 0.0524 -0.1429)
OKLCHoklch(42.56% 0.152 290.1)
XYZxyz(10.6386, 6.9104, 31.3389)
Luminance0.0691 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51389A #819A38
analogous
#38509A #51389A #82389A
triadic
#51389A #9A5138 #389A51
tetradic
#51389A #9A3850 #819A38 #389A82
square
#51389A #9A3850 #819A38 #389A82
split-complementary
#51389A #9A8238 #509A38
monochromatic
#221740 #39286D #51389A #6C50BF #927DD0

Accessibility & contrast

On white

8.82
#51389A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#51389A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51389A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51389A#FFFFFF#000000##FFFFFF
##51389A1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9D
Deuteranopia (green-blind)
#004898
Tritanopia (blue-blind)
#3A4F63
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #51389a;
/* rgb */ color: rgb(81, 56, 154);
/* oklch */ color: oklch(42.6% 0.152 290.1);
Tailwind
colors: {
  custom: {
    50: '#8870b8',
    500: '#51389a',
    950: '#000000',
  },
}
SCSS
$custom: #51389a;
$custom-light: #8870b8;
$custom-dark: #000000;
JSON
{
  "hex": "#51389a",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 154
  },
  "hsl": {
    "h": 255.306,
    "s": 46.667,
    "l": 41.176
  },
  "oklch": {
    "l": 0.4256,
    "c": 0.15223,
    "h": 290.1
  },
  "luminance": 0.06911
}

Semantic roles & 50–950 ramp

primary
#51389A
secondary
#A8B975
accent
#D651B4
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #51389A

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

Preview Lab → · Contrast checker → · Palette generator →

#51389A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva