#511F77#511F77

#511F77 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.1% C 0.144 H 306.4°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#511F77
RGBrgb(81, 31, 119)
HSLhsl(274, 59%, 29%)
HSVhsv(274, 74%, 47%)
CMYKcmyk(31.9%, 73.9%, 0%, 53.3%)
CIE-LABlab(23.87, 39.82, -40.72)
CIE-LCHlch(23.87, 56.95, 314.36°)
OKLaboklab(36.14% 0.0853 -0.1156)
OKLCHoklch(36.14% 0.144 306.4)
XYZxyz(7.2124, 4.0613, 17.8531)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F77 #45771F
analogous
#251F77 #511F77 #771F71
triadic
#511F77 #77511F #1F7751
tetradic
#511F77 #77251F #45771F #1F7177
square
#511F77 #77251F #45771F #1F7177
split-complementary
#511F77 #71771F #1F7725
monochromatic
#110618 #301246 #511F77 #722CA8 #9243CE

Accessibility & contrast

On white

11.59
#511F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F77
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F77#FFFFFF#000000##FFFFFF
##511F771.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377A
Deuteranopia (green-blind)
#003975
Tritanopia (blue-blind)
#4A3349
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511f77;
/* rgb */ color: rgb(81, 31, 119);
/* oklch */ color: oklch(36.1% 0.144 306.4);
Tailwind
colors: {
  custom: {
    50: '#865f9f',
    500: '#511f77',
    950: '#000000',
  },
}
SCSS
$custom: #511f77;
$custom-light: #865f9f;
$custom-dark: #000000;
JSON
{
  "hex": "#511f77",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 274.091,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.36141,
    "c": 0.14366,
    "h": 306.4
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#511F77
secondary
#72AB47
accent
#E24689
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F77

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

Preview Lab → · Contrast checker → · Palette generator →

#511F77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva