#51379C#51379C

#51379C is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.6% C 0.156 H 290.0°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).

Color values

HEX#51379C
RGBrgb(81, 55, 156)
HSLhsl(255, 48%, 41%)
HSVhsv(255, 65%, 61%)
CMYKcmyk(48.1%, 64.7%, 0%, 38.8%)
CIE-LABlab(31.54, 36.97, -51.30)
CIE-LCHlch(31.54, 63.23, 305.78°)
OKLaboklab(42.56% 0.0534 -0.1468)
OKLCHoklch(42.56% 0.156 290)
XYZxyz(10.7586, 6.8816, 32.2075)
Luminance0.0688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51379C #829C37
analogous
#37509C #51379C #84379C
triadic
#51379C #9C5137 #379C51
tetradic
#51379C #9C3750 #829C37 #379C84
square
#51379C #9C3750 #829C37 #379C84
split-complementary
#51379C #9C8437 #509C37
monochromatic
#221742 #3A276F #51379C #6C4FC1 #927CD1

Accessibility & contrast

On white

8.84
#51379C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#51379C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51379C
8.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51379C#FFFFFF#000000##FFFFFF
##51379C1.008.842.388.84
#FFFFFF8.841.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00489A
Tritanopia (blue-blind)
#394F64
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #51379c;
/* rgb */ color: rgb(81, 55, 156);
/* oklch */ color: oklch(42.6% 0.156 290.0);
Tailwind
colors: {
  custom: {
    50: '#886fba',
    500: '#51379c',
    950: '#000000',
  },
}
SCSS
$custom: #51379c;
$custom-light: #886fba;
$custom-dark: #000000;
JSON
{
  "hex": "#51379c",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 156
  },
  "hsl": {
    "h": 255.446,
    "s": 47.867,
    "l": 41.373
  },
  "oklch": {
    "l": 0.42561,
    "c": 0.15621,
    "h": 290
  },
  "luminance": 0.06882
}

Semantic roles & 50–950 ramp

primary
#51379C
secondary
#A8BA75
accent
#D750B5
background
#F8F6FB
surface
#F0ECF6
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #51379C

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

Preview Lab → · Contrast checker → · Palette generator →

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