#511F76#511F76

#511F76 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.143 H 306.8°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#511F76
RGBrgb(81, 31, 118)
HSLhsl(274, 58%, 29%)
HSVhsv(274, 74%, 46%)
CMYKcmyk(31.4%, 73.7%, 0%, 53.7%)
CIE-LABlab(23.79, 39.57, -40.21)
CIE-LCHlch(23.79, 56.41, 314.54°)
OKLaboklab(36.06% 0.0854 -0.1141)
OKLCHoklch(36.06% 0.143 306.8)
XYZxyz(7.1526, 4.0374, 17.5385)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F76 #44761F
analogous
#261F76 #511F76 #761F70
triadic
#511F76 #76511F #1F7651
tetradic
#511F76 #76261F #44761F #1F7076
square
#511F76 #76261F #44761F #1F7076
split-complementary
#511F76 #70761F #1F7626
monochromatic
#110618 #301246 #511F76 #722CA6 #9242CD

Accessibility & contrast

On white

11.62
#511F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F76
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F76#FFFFFF#000000##FFFFFF
##511F761.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#023974
Tritanopia (blue-blind)
#4B3348
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511f76;
/* rgb */ color: rgb(81, 31, 118);
/* oklch */ color: oklch(36.1% 0.143 306.8);
Tailwind
colors: {
  custom: {
    50: '#865f9e',
    500: '#511f76',
    950: '#000000',
  },
}
SCSS
$custom: #511f76;
$custom-light: #865f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#511f76",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 274.483,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.36061,
    "c": 0.14256,
    "h": 306.8
  },
  "luminance": 0.04037
}

Semantic roles & 50–950 ramp

primary
#511F76
secondary
#71AA47
accent
#E24688
background
#F8F5F9
surface
#F0EAF2
border
#CBC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F76

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

Preview Lab → · Contrast checker → · Palette generator →

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