#511C72#511C72

#511C72 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.142 H 309.0°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#511C72
RGBrgb(81, 28, 114)
HSLhsl(277, 61%, 28%)
HSVhsv(277, 75%, 45%)
CMYKcmyk(28.9%, 75.4%, 0%, 55.3%)
CIE-LABlab(22.98, 40.00, -38.96)
CIE-LCHlch(22.98, 55.84, 315.76°)
OKLaboklab(35.38% 0.0894 -0.1104)
OKLCHoklch(35.38% 0.142 309)
XYZxyz(6.8452, 3.7949, 16.2882)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C72 #3D721C
analogous
#261C72 #511C72 #721C68
triadic
#511C72 #72511C #1C7251
tetradic
#511C72 #72261C #3D721C #1C6872
square
#511C72 #72261C #3D721C #1C6872
split-complementary
#511C72 #68721C #1C7226
monochromatic
#110619 #2E1041 #511C72 #7428A3 #953ACF

Accessibility & contrast

On white

11.94
#511C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C72
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C72#FFFFFF#000000##FFFFFF
##511C721.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003574
Deuteranopia (green-blind)
#063770
Tritanopia (blue-blind)
#4C3045
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511c72;
/* rgb */ color: rgb(81, 28, 114);
/* oklch */ color: oklch(35.4% 0.142 309.0);
Tailwind
colors: {
  custom: {
    50: '#855e9b',
    500: '#511c72',
    950: '#000000',
  },
}
SCSS
$custom: #511c72;
$custom-light: #855e9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511c72",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 114
  },
  "hsl": {
    "h": 276.977,
    "s": 60.563,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35384,
    "c": 0.14208,
    "h": 309
  },
  "luminance": 0.03795
}

Semantic roles & 50–950 ramp

primary
#511C72
secondary
#69A643
accent
#E44481
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511C72

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

Preview Lab → · Contrast checker → · Palette generator →

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