#511476#511476

#511476 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.155 H 308.3°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#511476
RGBrgb(81, 20, 118)
HSLhsl(277, 71%, 27%)
HSVhsv(277, 83%, 46%)
CMYKcmyk(31.4%, 83.1%, 0%, 53.7%)
CIE-LABlab(22.15, 44.26, -42.87)
CIE-LCHlch(22.15, 61.62, 315.91°)
OKLaboklab(34.9% 0.0962 -0.1219)
OKLCHoklch(34.9% 0.155 308.3)
XYZxyz(6.9128, 3.5578, 17.4586)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511476 #397614
analogous
#201476 #511476 #76146A
triadic
#511476 #765114 #147651
tetradic
#511476 #762014 #397614 #146A76
square
#511476 #762014 #397614 #146A76
split-complementary
#511476 #6A7614 #147620
monochromatic
#12041A #2D0B42 #511476 #751DAA #982ADB

Accessibility & contrast

On white

12.27
#511476 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511476 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511476
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511476#FFFFFF#000000##FFFFFF
##5114761.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003379
Deuteranopia (green-blind)
#003674
Tritanopia (blue-blind)
#4B2E45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511476;
/* rgb */ color: rgb(81, 20, 118);
/* oklch */ color: oklch(34.9% 0.155 308.3);
Tailwind
colors: {
  custom: {
    50: '#865a9e',
    500: '#511476',
    950: '#000000',
  },
}
SCSS
$custom: #511476;
$custom-light: #865a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#511476",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 118
  },
  "hsl": {
    "h": 277.347,
    "s": 71.014,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34902,
    "c": 0.15529,
    "h": 308.3
  },
  "luminance": 0.03558
}

Semantic roles & 50–950 ramp

primary
#511476
secondary
#65AC3A
accent
#EE3A7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511476

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

Preview Lab → · Contrast checker → · Palette generator →

#511476 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva