#511C76#511C76

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

Color values

HEX#511C76
RGBrgb(81, 28, 118)
HSLhsl(275, 62%, 29%)
HSVhsv(275, 76%, 46%)
CMYKcmyk(31.4%, 76.3%, 0%, 53.7%)
CIE-LABlab(23.30, 40.97, -41.01)
CIE-LCHlch(23.30, 57.97, 314.97°)
OKLaboklab(35.71% 0.0887 -0.1165)
OKLCHoklch(35.71% 0.146 307.3)
XYZxyz(7.0779, 3.8879, 17.5136)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C76 #41761C
analogous
#241C76 #511C76 #761C6E
triadic
#511C76 #76511C #1C7651
tetradic
#511C76 #76241C #41761C #1C6E76
square
#511C76 #76241C #41761C #1C6E76
split-complementary
#511C76 #6E761C #1C7624
monochromatic
#110619 #2F1045 #511C76 #7328A7 #933CD1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511C76#FFFFFF#000000##FFFFFF
##511C761.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)
#003679
Deuteranopia (green-blind)
#003874
Tritanopia (blue-blind)
#4B3147
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511c76;
/* rgb */ color: rgb(81, 28, 118);
/* oklch */ color: oklch(35.7% 0.146 307.3);
Tailwind
colors: {
  custom: {
    50: '#865e9e',
    500: '#511c76',
    950: '#000000',
  },
}
SCSS
$custom: #511c76;
$custom-light: #865e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#511c76",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 118
  },
  "hsl": {
    "h": 275.333,
    "s": 61.644,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35708,
    "c": 0.14639,
    "h": 307.3
  },
  "luminance": 0.03888
}

Semantic roles & 50–950 ramp

primary
#511C76
secondary
#6EAA44
accent
#E54386
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C050E
muted
#7D797E

Preview Lab

Preview with #511C76

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

Preview Lab → · Contrast checker → · Palette generator →

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