#511B72#511B72

#511B72 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.143 H 309.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#511B72
RGBrgb(81, 27, 114)
HSLhsl(277, 62%, 28%)
HSVhsv(277, 76%, 45%)
CMYKcmyk(28.9%, 76.3%, 0%, 55.3%)
CIE-LABlab(22.82, 40.46, -39.22)
CIE-LCHlch(22.82, 56.35, 315.89°)
OKLaboklab(35.27% 0.0905 -0.1112)
OKLCHoklch(35.27% 0.143 309.1)
XYZxyz(6.8219, 3.7482, 16.2804)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B72 #3C721B
analogous
#251B72 #511B72 #721B68
triadic
#511B72 #72511B #1B7251
tetradic
#511B72 #72251B #3C721B #1B6872
square
#511B72 #72251B #3C721B #1B6872
split-complementary
#511B72 #68721B #1B7225
monochromatic
#120619 #2E0F41 #511B72 #7427A3 #9638D0

Accessibility & contrast

On white

12.00
#511B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B72
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B72#FFFFFF#000000##FFFFFF
##511B721.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#043770
Tritanopia (blue-blind)
#4C2F45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511b72;
/* rgb */ color: rgb(81, 27, 114);
/* oklch */ color: oklch(35.3% 0.143 309.1);
Tailwind
colors: {
  custom: {
    50: '#865d9b',
    500: '#511b72',
    950: '#000000',
  },
}
SCSS
$custom: #511b72;
$custom-light: #865d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511b72",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 277.241,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3527,
    "c": 0.14335,
    "h": 309.1
  },
  "luminance": 0.03748
}

Semantic roles & 50–950 ramp

primary
#511B72
secondary
#68A742
accent
#E54380
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511B72

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

Preview Lab → · Contrast checker → · Palette generator →

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