#511E7E#511E7E

#511E7E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.153 H 303.8°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#511E7E
RGBrgb(81, 30, 126)
HSLhsl(272, 62%, 31%)
HSVhsv(272, 76%, 49%)
CMYKcmyk(35.7%, 76.2%, 0%, 50.6%)
CIE-LABlab(24.27, 42.04, -44.52)
CIE-LCHlch(24.27, 61.23, 313.36°)
OKLaboklab(36.6% 0.085 -0.1268)
OKLCHoklch(36.6% 0.153 303.8)
XYZxyz(7.6226, 4.1843, 20.1407)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E7E #4B7E1E
analogous
#211E7E #511E7E #7E1E7B
triadic
#511E7E #7E511E #1E7E51
tetradic
#511E7E #7E211E #4B7E1E #1E7B7E
square
#511E7E #7E211E #4B7E1E #1E7B7E
split-complementary
#511E7E #7B7E1E #1E7E21
monochromatic
#11061B #31124D #511E7E #712AAF #9044D2

Accessibility & contrast

On white

11.43
#511E7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#511E7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E7E
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E7E#FFFFFF#000000##FFFFFF
##511E7E1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#48364C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511e7e;
/* rgb */ color: rgb(81, 30, 126);
/* oklch */ color: oklch(36.6% 0.153 303.8);
Tailwind
colors: {
  custom: {
    50: '#865fa4',
    500: '#511e7e',
    950: '#000000',
  },
}
SCSS
$custom: #511e7e;
$custom-light: #865fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#511e7e",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 126
  },
  "hsl": {
    "h": 271.875,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.36601,
    "c": 0.15263,
    "h": 303.8
  },
  "luminance": 0.04184
}

Semantic roles & 50–950 ramp

primary
#511E7E
secondary
#79B147
accent
#E5438F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511E7E

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

Preview Lab → · Contrast checker → · Palette generator →

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