#51389E#51389E

#51389E is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.9% C 0.157 H 289.3°. Best body text is #FFFFFF at 8.72:1 contrast (WCAG AA passes).

Color values

HEX#51389E
RGBrgb(81, 56, 158)
HSLhsl(255, 48%, 42%)
HSVhsv(255, 65%, 62%)
CMYKcmyk(48.7%, 64.6%, 0%, 38%)
CIE-LABlab(31.91, 36.98, -51.90)
CIE-LCHlch(31.91, 63.73, 305.47°)
OKLaboklab(42.88% 0.0521 -0.1486)
OKLCHoklch(42.88% 0.157 289.3)
XYZxyz(10.9773, 7.0459, 33.1227)
Luminance0.0705 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51389E #859E38
analogous
#38529E #51389E #84389E
triadic
#51389E #9E5138 #389E51
tetradic
#51389E #9E3852 #859E38 #389E84
square
#51389E #9E3852 #859E38 #389E84
split-complementary
#51389E #9E8438 #529E38
monochromatic
#231844 #3A2871 #51389E #6D52C2 #937FD2

Accessibility & contrast

On white

8.72
#51389E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#51389E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51389E
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51389E#FFFFFF#000000##FFFFFF
##51389E1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA1
Deuteranopia (green-blind)
#00499C
Tritanopia (blue-blind)
#385066
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #51389e;
/* rgb */ color: rgb(81, 56, 158);
/* oklch */ color: oklch(42.9% 0.157 289.3);
Tailwind
colors: {
  custom: {
    50: '#8870bb',
    500: '#51389e',
    950: '#000000',
  },
}
SCSS
$custom: #51389e;
$custom-light: #8870bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51389e",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 158
  },
  "hsl": {
    "h": 254.706,
    "s": 47.664,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42882,
    "c": 0.15744,
    "h": 289.3
  },
  "luminance": 0.07046
}

Semantic roles & 50–950 ramp

primary
#51389E
secondary
#AABB77
accent
#D751B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51389E

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

Preview Lab → · Contrast checker → · Palette generator →

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