#511C6E#511C6E

#511C6E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.138 H 310.8°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#511C6E
RGBrgb(81, 28, 110)
HSLhsl(279, 59%, 27%)
HSVhsv(279, 75%, 43%)
CMYKcmyk(26.4%, 74.5%, 0%, 56.9%)
CIE-LABlab(22.67, 39.05, -36.88)
CIE-LCHlch(22.67, 53.71, 316.64°)
OKLaboklab(35.07% 0.09 -0.1043)
OKLCHoklch(35.07% 0.138 310.8)
XYZxyz(6.6225, 3.7058, 15.1152)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C6E #396E1C
analogous
#281C6E #511C6E #6E1C62
triadic
#511C6E #6E511C #1C6E51
tetradic
#511C6E #6E281C #396E1C #1C626E
square
#511C6E #6E281C #396E1C #1C626E
split-complementary
#511C6E #626E1C #1C6E28
monochromatic
#120618 #2D103D #511C6E #75289F #9838CC

Accessibility & contrast

On white

12.06
#511C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511C6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511C6E
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C6E#FFFFFF#000000##FFFFFF
##511C6E1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#0F376C
Tritanopia (blue-blind)
#4D2E43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511c6e;
/* rgb */ color: rgb(81, 28, 110);
/* oklch */ color: oklch(35.1% 0.138 310.8);
Tailwind
colors: {
  custom: {
    50: '#855d98',
    500: '#511c6e',
    950: '#000000',
  },
}
SCSS
$custom: #511c6e;
$custom-light: #855d98;
$custom-dark: #000000;
JSON
{
  "hex": "#511c6e",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 110
  },
  "hsl": {
    "h": 278.78,
    "s": 59.42,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35068,
    "c": 0.13778,
    "h": 310.8
  },
  "luminance": 0.03706
}

Semantic roles & 50–950 ramp

primary
#511C6E
secondary
#65A343
accent
#E3457D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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