#51389C#51389C

#51389C is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.7% C 0.155 H 289.7°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#51389C
RGBrgb(81, 56, 156)
HSLhsl(255, 47%, 42%)
HSVhsv(255, 64%, 61%)
CMYKcmyk(48.1%, 64.1%, 0%, 38.8%)
CIE-LABlab(31.76, 36.38, -50.94)
CIE-LCHlch(31.76, 62.60, 305.53°)
OKLaboklab(42.72% 0.0523 -0.1458)
OKLCHoklch(42.72% 0.155 289.7)
XYZxyz(10.8066, 6.9776, 32.2234)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51389C #839C38
analogous
#38519C #51389C #83389C
triadic
#51389C #9C5138 #389C51
tetradic
#51389C #9C3851 #839C38 #389C83
square
#51389C #9C3851 #839C38 #389C83
split-complementary
#51389C #9C8338 #519C38
monochromatic
#221842 #3A286F #51389C #6D51C0 #927ED1

Accessibility & contrast

On white

8.77
#51389C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#51389C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51389C
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51389C#FFFFFF#000000##FFFFFF
##51389C1.008.772.408.77
#FFFFFF8.771.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004D9F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#395064
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #51389c;
/* rgb */ color: rgb(81, 56, 156);
/* oklch */ color: oklch(42.7% 0.155 289.7);
Tailwind
colors: {
  custom: {
    50: '#8870ba',
    500: '#51389c',
    950: '#000000',
  },
}
SCSS
$custom: #51389c;
$custom-light: #8870ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51389c",
  "rgb": {
    "r": 81,
    "g": 56,
    "b": 156
  },
  "hsl": {
    "h": 255,
    "s": 47.17,
    "l": 41.569
  },
  "oklch": {
    "l": 0.4272,
    "c": 0.15485,
    "h": 289.7
  },
  "luminance": 0.06978
}

Semantic roles & 50–950 ramp

primary
#51389C
secondary
#A9BA76
accent
#D751B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51389C

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

Preview Lab → · Contrast checker → · Palette generator →

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