#51399D#51399D

#51399D is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.0% C 0.155 H 289.3°. Best body text is #FFFFFF at 8.67:1 contrast (WCAG AA passes).

Color values

HEX#51399D
RGBrgb(81, 57, 157)
HSLhsl(254, 47%, 42%)
HSVhsv(254, 64%, 62%)
CMYKcmyk(48.4%, 63.7%, 0%, 38.4%)
CIE-LABlab(32.05, 36.09, -51.06)
CIE-LCHlch(32.05, 62.53, 305.25°)
OKLaboklab(42.96% 0.0511 -0.1461)
OKLCHoklch(42.96% 0.155 289.3)
XYZxyz(10.9405, 7.1095, 32.6876)
Luminance0.0711 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51399D #859D39
analogous
#39539D #51399D #83399D
triadic
#51399D #9D5139 #399D51
tetradic
#51399D #9D3953 #859D39 #399D83
square
#51399D #9D3953 #859D39 #399D83
split-complementary
#51399D #9D8339 #539D39
monochromatic
#231843 #3A2970 #51399D #6D53C0 #9380D1

Accessibility & contrast

On white

8.67
#51399D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#51399D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51399D
8.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51399D#FFFFFF#000000##FFFFFF
##51399D1.008.672.428.67
#FFFFFF8.671.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA0
Deuteranopia (green-blind)
#00499B
Tritanopia (blue-blind)
#385165
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #51399d;
/* rgb */ color: rgb(81, 57, 157);
/* oklch */ color: oklch(43.0% 0.155 289.3);
Tailwind
colors: {
  custom: {
    50: '#8871bb',
    500: '#51399d',
    950: '#000000',
  },
}
SCSS
$custom: #51399d;
$custom-light: #8871bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51399d",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 157
  },
  "hsl": {
    "h": 254.4,
    "s": 46.729,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42962,
    "c": 0.15478,
    "h": 289.3
  },
  "luminance": 0.0711
}

Semantic roles & 50–950 ramp

primary
#51399D
secondary
#AABA78
accent
#D651B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51399D

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

Preview Lab → · Contrast checker → · Palette generator →

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