#511C6F#511C6F

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

Color values

HEX#511C6F
RGBrgb(81, 28, 111)
HSLhsl(278, 60%, 27%)
HSVhsv(278, 75%, 44%)
CMYKcmyk(27%, 74.8%, 0%, 56.5%)
CIE-LABlab(22.75, 39.29, -37.40)
CIE-LCHlch(22.75, 54.24, 316.41°)
OKLaboklab(35.15% 0.0899 -0.1058)
OKLCHoklch(35.15% 0.139 310.3)
XYZxyz(6.6773, 3.7277, 15.4036)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C6F #3A6F1C
analogous
#271C6F #511C6F #6F1C64
triadic
#511C6F #6F511C #1C6F51
tetradic
#511C6F #6F271C #3A6F1C #1C646F
square
#511C6F #6F271C #3A6F1C #1C646F
split-complementary
#511C6F #646F1C #1C6F27
monochromatic
#120618 #2D103E #511C6F #7528A0 #9738CD

Accessibility & contrast

On white

12.03
#511C6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C6F
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C6F#FFFFFF#000000##FFFFFF
##511C6F1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511c6f;
/* rgb */ color: rgb(81, 28, 111);
/* oklch */ color: oklch(35.1% 0.139 310.3);
Tailwind
colors: {
  custom: {
    50: '#855d99',
    500: '#511c6f',
    950: '#000000',
  },
}
SCSS
$custom: #511c6f;
$custom-light: #855d99;
$custom-dark: #000000;
JSON
{
  "hex": "#511c6f",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 111
  },
  "hsl": {
    "h": 278.313,
    "s": 59.712,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35146,
    "c": 0.13886,
    "h": 310.3
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#511C6F
secondary
#66A443
accent
#E3457E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511C6F

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

Preview Lab → · Contrast checker → · Palette generator →

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