#511E76#511E76

#511E76 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.9% C 0.144 H 307.0°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#511E76
RGBrgb(81, 30, 118)
HSLhsl(275, 59%, 29%)
HSVhsv(275, 75%, 46%)
CMYKcmyk(31.4%, 74.6%, 0%, 53.7%)
CIE-LABlab(23.63, 40.04, -40.48)
CIE-LCHlch(23.63, 56.94, 314.69°)
OKLaboklab(35.94% 0.0865 -0.1149)
OKLCHoklch(35.94% 0.144 307)
XYZxyz(7.1269, 3.9860, 17.5299)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E76 #43761E
analogous
#251E76 #511E76 #761E6F
triadic
#511E76 #76511E #1E7651
tetradic
#511E76 #76251E #43761E #1E6F76
square
#511E76 #76251E #43761E #1E6F76
split-complementary
#511E76 #6F761E #1E7625
monochromatic
#110618 #301245 #511E76 #722AA7 #9340CE

Accessibility & contrast

On white

11.68
#511E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#511E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E76
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E76#FFFFFF#000000##FFFFFF
##511E761.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#003974
Tritanopia (blue-blind)
#4B3248
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511e76;
/* rgb */ color: rgb(81, 30, 118);
/* oklch */ color: oklch(35.9% 0.144 307.0);
Tailwind
colors: {
  custom: {
    50: '#865f9e',
    500: '#511e76',
    950: '#000000',
  },
}
SCSS
$custom: #511e76;
$custom-light: #865f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#511e76",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 118
  },
  "hsl": {
    "h": 274.773,
    "s": 59.459,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3594,
    "c": 0.14386,
    "h": 307
  },
  "luminance": 0.03986
}

Semantic roles & 50–950 ramp

primary
#511E76
secondary
#70AA46
accent
#E34587
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511E76

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

Preview Lab → · Contrast checker → · Palette generator →

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