#511F82#511F82

#511F82 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.156 H 302.2°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#511F82
RGBrgb(81, 31, 130)
HSLhsl(270, 61%, 32%)
HSVhsv(270, 76%, 51%)
CMYKcmyk(37.7%, 76.2%, 0%, 49%)
CIE-LABlab(24.77, 42.59, -46.24)
CIE-LCHlch(24.77, 62.86, 312.65°)
OKLaboklab(37.06% 0.0831 -0.1318)
OKLCHoklch(37.06% 0.156 302.2)
XYZxyz(7.9116, 4.3410, 21.5358)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F82 #50821F
analogous
#201F82 #511F82 #821F82
triadic
#511F82 #82511F #1F8251
tetradic
#511F82 #82201F #50821F #1F8282
square
#511F82 #82201F #50821F #1F8282
split-complementary
#511F82 #82821F #1F8220
monochromatic
#13071F #321351 #511F82 #702BB3 #8E48D3

Accessibility & contrast

On white

11.24
#511F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#511F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F82
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F82#FFFFFF#000000##FFFFFF
##511F821.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A85
Deuteranopia (green-blind)
#003A80
Tritanopia (blue-blind)
#47384F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #511f82;
/* rgb */ color: rgb(81, 31, 130);
/* oklch */ color: oklch(37.1% 0.156 302.2);
Tailwind
colors: {
  custom: {
    50: '#8760a7',
    500: '#511f82',
    950: '#000000',
  },
}
SCSS
$custom: #511f82;
$custom-light: #8760a7;
$custom-dark: #000000;
JSON
{
  "hex": "#511f82",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 130
  },
  "hsl": {
    "h": 270.303,
    "s": 61.491,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37056,
    "c": 0.15584,
    "h": 302.2
  },
  "luminance": 0.04341
}

Semantic roles & 50–950 ramp

primary
#511F82
secondary
#7EB548
accent
#E54393
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511F82

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

Preview Lab → · Contrast checker → · Palette generator →

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