#511C75#511C75

#511C75 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.145 H 307.7°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#511C75
RGBrgb(81, 28, 117)
HSLhsl(276, 61%, 28%)
HSVhsv(276, 76%, 46%)
CMYKcmyk(30.8%, 76.1%, 0%, 54.1%)
CIE-LABlab(23.22, 40.73, -40.50)
CIE-LCHlch(23.22, 57.44, 315.16°)
OKLaboklab(35.63% 0.0889 -0.115)
OKLCHoklch(35.63% 0.145 307.7)
XYZxyz(7.0188, 3.8643, 17.2023)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C75 #40751C
analogous
#241C75 #511C75 #751C6C
triadic
#511C75 #75511C #1C7551
tetradic
#511C75 #75241C #40751C #1C6C75
square
#511C75 #75241C #40751C #1C6C75
split-complementary
#511C75 #6C751C #1C7524
monochromatic
#110619 #2F1044 #511C75 #7328A6 #943BD0

Accessibility & contrast

On white

11.85
#511C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#511C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C75
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C75#FFFFFF#000000##FFFFFF
##511C751.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#003873
Tritanopia (blue-blind)
#4B3147
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511c75;
/* rgb */ color: rgb(81, 28, 117);
/* oklch */ color: oklch(35.6% 0.145 307.7);
Tailwind
colors: {
  custom: {
    50: '#865e9d',
    500: '#511c75',
    950: '#000000',
  },
}
SCSS
$custom: #511c75;
$custom-light: #865e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511c75",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 275.73,
    "s": 61.379,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35626,
    "c": 0.1453,
    "h": 307.7
  },
  "luminance": 0.03864
}

Semantic roles & 50–950 ramp

primary
#511C75
secondary
#6DA944
accent
#E44385
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511C75

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

Preview Lab → · Contrast checker → · Palette generator →

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