#511F72#511F72

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

Color values

HEX#511F72
RGBrgb(81, 31, 114)
HSLhsl(276, 57%, 28%)
HSVhsv(276, 73%, 45%)
CMYKcmyk(28.9%, 72.8%, 0%, 55.3%)
CIE-LABlab(23.49, 38.58, -38.14)
CIE-LCHlch(23.49, 54.25, 315.33°)
OKLaboklab(35.74% 0.086 -0.108)
OKLCHoklch(35.74% 0.138 308.5)
XYZxyz(6.9200, 3.9443, 16.3131)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F72 #40721F
analogous
#281F72 #511F72 #721F69
triadic
#511F72 #72511F #1F7251
tetradic
#511F72 #72281F #40721F #1F6972
square
#511F72 #72281F #40721F #1F6972
split-complementary
#511F72 #69721F #1F7228
monochromatic
#110718 #2F1242 #511F72 #732CA2 #9440CB

Accessibility & contrast

On white

11.74
#511F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#511F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F72
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F72#FFFFFF#000000##FFFFFF
##511F721.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003674
Deuteranopia (green-blind)
#0C3970
Tritanopia (blue-blind)
#4C3146
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511f72;
/* rgb */ color: rgb(81, 31, 114);
/* oklch */ color: oklch(35.7% 0.138 308.5);
Tailwind
colors: {
  custom: {
    50: '#855f9b',
    500: '#511f72',
    950: '#000000',
  },
}
SCSS
$custom: #511f72;
$custom-light: #855f9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511f72",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 276.145,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35744,
    "c": 0.13812,
    "h": 308.5
  },
  "luminance": 0.03944
}

Semantic roles & 50–950 ramp

primary
#511F72
secondary
#6DA647
accent
#E04784
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F72

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

Preview Lab → · Contrast checker → · Palette generator →

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