#511C73#511C73

#511C73 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.143 H 308.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#511C73
RGBrgb(81, 28, 115)
HSLhsl(277, 61%, 28%)
HSVhsv(277, 76%, 45%)
CMYKcmyk(29.6%, 75.7%, 0%, 54.9%)
CIE-LABlab(23.06, 40.24, -39.48)
CIE-LCHlch(23.06, 56.37, 315.55°)
OKLaboklab(35.46% 0.0892 -0.1119)
OKLCHoklch(35.46% 0.143 308.6)
XYZxyz(6.9025, 3.8178, 16.5896)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C73 #3E731C
analogous
#261C73 #511C73 #731C69
triadic
#511C73 #73511C #1C7351
tetradic
#511C73 #73261C #3E731C #1C6973
square
#511C73 #73261C #3E731C #1C6973
split-complementary
#511C73 #69731C #1C7326
monochromatic
#110619 #2E1042 #511C73 #7428A4 #953ACF

Accessibility & contrast

On white

11.91
#511C73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511C73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C73
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C73#FFFFFF#000000##FFFFFF
##511C731.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003575
Deuteranopia (green-blind)
#043871
Tritanopia (blue-blind)
#4C3046
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511c73;
/* rgb */ color: rgb(81, 28, 115);
/* oklch */ color: oklch(35.5% 0.143 308.6);
Tailwind
colors: {
  custom: {
    50: '#865e9c',
    500: '#511c73',
    950: '#000000',
  },
}
SCSS
$custom: #511c73;
$custom-light: #865e9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511c73",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 115
  },
  "hsl": {
    "h": 276.552,
    "s": 60.839,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35464,
    "c": 0.14316,
    "h": 308.6
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#511C73
secondary
#6AA743
accent
#E44482
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511C73

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

Preview Lab → · Contrast checker → · Palette generator →

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