#511B6F#511B6F

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

Color values

HEX#511B6F
RGBrgb(81, 27, 111)
HSLhsl(279, 61%, 27%)
HSVhsv(279, 76%, 44%)
CMYKcmyk(27%, 75.7%, 0%, 56.5%)
CIE-LABlab(22.59, 39.75, -37.66)
CIE-LCHlch(22.59, 54.76, 316.54°)
OKLaboklab(35.03% 0.091 -0.1066)
OKLCHoklch(35.03% 0.14 310.5)
XYZxyz(6.6540, 3.6810, 15.3958)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B6F #396F1B
analogous
#271B6F #511B6F #6F1B63
triadic
#511B6F #6F511B #1B6F51
tetradic
#511B6F #6F271B #396F1B #1B636F
square
#511B6F #6F271B #396F1B #1B636F
split-complementary
#511B6F #636F1B #1B6F27
monochromatic
#120619 #2D0F3E #511B6F #7527A0 #9836CE

Accessibility & contrast

On white

12.10
#511B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B6F
12.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B6F#FFFFFF#000000##FFFFFF
##511B6F1.0012.101.7412.10
#FFFFFF12.101.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511b6f;
/* rgb */ color: rgb(81, 27, 111);
/* oklch */ color: oklch(35.0% 0.140 310.5);
Tailwind
colors: {
  custom: {
    50: '#855d99',
    500: '#511b6f',
    950: '#000000',
  },
}
SCSS
$custom: #511b6f;
$custom-light: #855d99;
$custom-dark: #000000;
JSON
{
  "hex": "#511b6f",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 278.571,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35031,
    "c": 0.14015,
    "h": 310.5
  },
  "luminance": 0.03681
}

Semantic roles & 50–950 ramp

primary
#511B6F
secondary
#65A442
accent
#E4447D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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