#511D74#511D74

#511D74 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.143 H 308.0°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#511D74
RGBrgb(81, 29, 116)
HSLhsl(276, 60%, 28%)
HSVhsv(276, 75%, 45%)
CMYKcmyk(30.2%, 75%, 0%, 54.5%)
CIE-LABlab(23.30, 40.02, -39.73)
CIE-LCHlch(23.30, 56.39, 315.21°)
OKLaboklab(35.66% 0.088 -0.1127)
OKLCHoklch(35.66% 0.143 308)
XYZxyz(6.9844, 3.8891, 16.9023)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D74 #40741D
analogous
#251D74 #511D74 #741D6B
triadic
#511D74 #74511D #1D7451
tetradic
#511D74 #74251D #40741D #1D6B74
square
#511D74 #74251D #40741D #1D6B74
split-complementary
#511D74 #6B741D #1D7425
monochromatic
#110618 #2F1143 #511D74 #7329A5 #943DCE

Accessibility & contrast

On white

11.81
#511D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D74
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D74#FFFFFF#000000##FFFFFF
##511D741.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#033872
Tritanopia (blue-blind)
#4B3146
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511d74;
/* rgb */ color: rgb(81, 29, 116);
/* oklch */ color: oklch(35.7% 0.143 308.0);
Tailwind
colors: {
  custom: {
    50: '#865e9d',
    500: '#511d74',
    950: '#000000',
  },
}
SCSS
$custom: #511d74;
$custom-light: #865e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511d74",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 275.862,
    "s": 60,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35661,
    "c": 0.14296,
    "h": 308
  },
  "luminance": 0.03889
}

Semantic roles & 50–950 ramp

primary
#511D74
secondary
#6DA845
accent
#E34584
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511D74

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

Preview Lab → · Contrast checker → · Palette generator →

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