#511C71#511C71

#511C71 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.141 H 309.4°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#511C71
RGBrgb(81, 28, 113)
HSLhsl(277, 60%, 28%)
HSVhsv(277, 75%, 44%)
CMYKcmyk(28.3%, 75.2%, 0%, 55.7%)
CIE-LABlab(22.90, 39.76, -38.44)
CIE-LCHlch(22.90, 55.31, 315.97°)
OKLaboklab(35.3% 0.0896 -0.1089)
OKLCHoklch(35.3% 0.141 309.4)
XYZxyz(6.7886, 3.7722, 15.9901)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C71 #3C711C
analogous
#271C71 #511C71 #711C66
triadic
#511C71 #71511C #1C7151
tetradic
#511C71 #71271C #3C711C #1C6671
square
#511C71 #71271C #3C711C #1C6671
split-complementary
#511C71 #66711C #1C7127
monochromatic
#120619 #2E1040 #511C71 #7428A2 #9639CE

Accessibility & contrast

On white

11.97
#511C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C71
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C71#FFFFFF#000000##FFFFFF
##511C711.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#08376F
Tritanopia (blue-blind)
#4C2F44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511c71;
/* rgb */ color: rgb(81, 28, 113);
/* oklch */ color: oklch(35.3% 0.141 309.4);
Tailwind
colors: {
  custom: {
    50: '#855e9a',
    500: '#511c71',
    950: '#000000',
  },
}
SCSS
$custom: #511c71;
$custom-light: #855e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511c71",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 277.412,
    "s": 60.284,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35304,
    "c": 0.141,
    "h": 309.4
  },
  "luminance": 0.03772
}

Semantic roles & 50–950 ramp

primary
#511C71
secondary
#68A643
accent
#E34480
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511C71

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

Preview Lab → · Contrast checker → · Palette generator →

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