#511D75#511D75

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

Color values

HEX#511D75
RGBrgb(81, 29, 117)
HSLhsl(275, 60%, 29%)
HSVhsv(275, 75%, 46%)
CMYKcmyk(30.8%, 75.2%, 0%, 54.1%)
CIE-LABlab(23.38, 40.27, -40.24)
CIE-LCHlch(23.38, 56.93, 315.02°)
OKLaboklab(35.74% 0.0878 -0.1142)
OKLCHoklch(35.74% 0.144 307.6)
XYZxyz(7.0429, 3.9125, 17.2103)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D75 #41751D
analogous
#251D75 #511D75 #751D6D
triadic
#511D75 #75511D #1D7551
tetradic
#511D75 #75251D #41751D #1D6D75
square
#511D75 #75251D #41751D #1D6D75
split-complementary
#511D75 #6D751D #1D7525
monochromatic
#110619 #2F1144 #511D75 #7329A6 #933DCF

Accessibility & contrast

On white

11.78
#511D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D75
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D75#FFFFFF#000000##FFFFFF
##511D751.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003678
Deuteranopia (green-blind)
#013873
Tritanopia (blue-blind)
#4B3147
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511d75;
/* rgb */ color: rgb(81, 29, 117);
/* oklch */ color: oklch(35.7% 0.144 307.6);
Tailwind
colors: {
  custom: {
    50: '#865e9d',
    500: '#511d75',
    950: '#000000',
  },
}
SCSS
$custom: #511d75;
$custom-light: #865e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511d75",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 117
  },
  "hsl": {
    "h": 275.455,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35741,
    "c": 0.14405,
    "h": 307.6
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#511D75
secondary
#6EA945
accent
#E34485
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511D75

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

Preview Lab → · Contrast checker → · Palette generator →

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