#511B6E#511B6E

#511B6E is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.0% C 0.139 H 310.9°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#511B6E
RGBrgb(81, 27, 110)
HSLhsl(279, 61%, 27%)
HSVhsv(279, 75%, 43%)
CMYKcmyk(26.4%, 75.5%, 0%, 56.9%)
CIE-LABlab(22.51, 39.51, -37.14)
CIE-LCHlch(22.51, 54.23, 316.77°)
OKLaboklab(34.95% 0.0911 -0.1051)
OKLCHoklch(34.95% 0.139 310.9)
XYZxyz(6.5992, 3.6591, 15.1075)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B6E #386E1B
analogous
#281B6E #511B6E #6E1B62
triadic
#511B6E #6E511B #1B6E51
tetradic
#511B6E #6E281B #386E1B #1B626E
square
#511B6E #6E281B #386E1B #1B626E
split-complementary
#511B6E #626E1B #1B6E28
monochromatic
#120619 #2D0F3D #511B6E #75279F #9936CE

Accessibility & contrast

On white

12.13
#511B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B6E
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B6E#FFFFFF#000000##FFFFFF
##511B6E1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#0D376C
Tritanopia (blue-blind)
#4D2D43
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511b6e;
/* rgb */ color: rgb(81, 27, 110);
/* oklch */ color: oklch(35.0% 0.139 310.9);
Tailwind
colors: {
  custom: {
    50: '#855d98',
    500: '#511b6e',
    950: '#000000',
  },
}
SCSS
$custom: #511b6e;
$custom-light: #855d98;
$custom-dark: #000000;
JSON
{
  "hex": "#511b6e",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 279.036,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34952,
    "c": 0.13909,
    "h": 310.9
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#511B6E
secondary
#64A342
accent
#E4447C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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