#51399F#51399F

#51399F is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.1% C 0.157 H 288.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#51399F
RGBrgb(81, 57, 159)
HSLhsl(254, 47%, 42%)
HSVhsv(254, 64%, 62%)
CMYKcmyk(49.1%, 64.2%, 0%, 37.6%)
CIE-LABlab(32.21, 36.69, -52.02)
CIE-LCHlch(32.21, 63.66, 305.19°)
OKLaboklab(43.12% 0.0509 -0.1489)
OKLCHoklch(43.12% 0.157 288.9)
XYZxyz(11.1127, 7.1783, 33.5942)
Luminance0.0718 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51399F #879F39
analogous
#39549F #51399F #84399F
triadic
#51399F #9F5139 #399F51
tetradic
#51399F #9F3954 #879F39 #399F84
square
#51399F #9F3954 #879F39 #399F84
split-complementary
#51399F #9F8439 #549F39
monochromatic
#231945 #3A2972 #51399F #6E54C2 #9481D2

Accessibility & contrast

On white

8.62
#51399F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#51399F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51399F
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51399F#FFFFFF#000000##FFFFFF
##51399F1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA2
Deuteranopia (green-blind)
#00499D
Tritanopia (blue-blind)
#375166
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #51399f;
/* rgb */ color: rgb(81, 57, 159);
/* oklch */ color: oklch(43.1% 0.157 288.9);
Tailwind
colors: {
  custom: {
    50: '#8971bc',
    500: '#51399f',
    950: '#000000',
  },
}
SCSS
$custom: #51399f;
$custom-light: #8971bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51399f",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 159
  },
  "hsl": {
    "h": 254.118,
    "s": 47.222,
    "l": 42.353
  },
  "oklch": {
    "l": 0.43123,
    "c": 0.1574,
    "h": 288.9
  },
  "luminance": 0.07179
}

Semantic roles & 50–950 ramp

primary
#51399F
secondary
#ACBB78
accent
#D751B7
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0812
muted
#7D7B81

Preview Lab

Preview with #51399F

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

Preview Lab → · Contrast checker → · Palette generator →

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