#51379F#51379F

#51379F is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.160 H 289.4°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#51379F
RGBrgb(81, 55, 159)
HSLhsl(255, 49%, 42%)
HSVhsv(255, 65%, 62%)
CMYKcmyk(49.1%, 65.4%, 0%, 37.6%)
CIE-LABlab(31.77, 37.87, -52.74)
CIE-LCHlch(31.77, 64.92, 305.68°)
OKLaboklab(42.81% 0.0531 -0.151)
OKLCHoklch(42.81% 0.16 289.4)
XYZxyz(11.0157, 6.9845, 33.5619)
Luminance0.0698 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51379F #859F37
analogous
#37519F #51379F #85379F
triadic
#51379F #9F5137 #379F51
tetradic
#51379F #9F3751 #859F37 #379F85
square
#51379F #9F3751 #859F37 #379F85
split-complementary
#51379F #9F8537 #519F37
monochromatic
#231844 #3A2772 #51379F #6D51C3 #937ED2

Accessibility & contrast

On white

8.76
#51379F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#51379F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51379F
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51379F#FFFFFF#000000##FFFFFF
##51379F1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA2
Deuteranopia (green-blind)
#00489D
Tritanopia (blue-blind)
#375066
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #51379f;
/* rgb */ color: rgb(81, 55, 159);
/* oklch */ color: oklch(42.8% 0.160 289.4);
Tailwind
colors: {
  custom: {
    50: '#896fbc',
    500: '#51379f',
    950: '#000000',
  },
}
SCSS
$custom: #51379f;
$custom-light: #896fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#51379f",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 159
  },
  "hsl": {
    "h": 255,
    "s": 48.598,
    "l": 41.961
  },
  "oklch": {
    "l": 0.42805,
    "c": 0.16008,
    "h": 289.4
  },
  "luminance": 0.06985
}

Semantic roles & 50–950 ramp

primary
#51379F
secondary
#AABC76
accent
#D850B6
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51379F

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

Preview Lab → · Contrast checker → · Palette generator →

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