#511D6C#511D6C

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

Color values

HEX#511D6C
RGBrgb(81, 29, 108)
HSLhsl(279, 58%, 27%)
HSVhsv(279, 73%, 42%)
CMYKcmyk(25%, 73.1%, 0%, 57.6%)
CIE-LABlab(22.69, 38.10, -35.56)
CIE-LCHlch(22.69, 52.12, 316.98°)
OKLaboklab(35.03% 0.0891 -0.1004)
OKLCHoklch(35.03% 0.134 311.6)
XYZxyz(6.5390, 3.7109, 14.5563)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D6C #386C1D
analogous
#2A1D6C #511D6C #6C1D60
triadic
#511D6C #6C511D #1D6C51
tetradic
#511D6C #6C2A1D #386C1D #1D606C
square
#511D6C #6C2A1D #386C1D #1D606C
split-complementary
#511D6C #606C1D #1D6C2A
monochromatic
#120618 #2D103C #511D6C #752A9C #9939CA

Accessibility & contrast

On white

12.05
#511D6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511D6C
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D6C#FFFFFF#000000##FFFFFF
##511D6C1.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#13376A
Tritanopia (blue-blind)
#4E2E42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511d6c;
/* rgb */ color: rgb(81, 29, 108);
/* oklch */ color: oklch(35.0% 0.134 311.6);
Tailwind
colors: {
  custom: {
    50: '#855e97',
    500: '#511d6c',
    950: '#000000',
  },
}
SCSS
$custom: #511d6c;
$custom-light: #855e97;
$custom-dark: #000000;
JSON
{
  "hex": "#511d6c",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 108
  },
  "hsl": {
    "h": 279.494,
    "s": 57.664,
    "l": 26.863
  },
  "oklch": {
    "l": 0.35033,
    "c": 0.13428,
    "h": 311.6
  },
  "luminance": 0.03711
}

Semantic roles & 50–950 ramp

primary
#511D6C
secondary
#64A144
accent
#E1477C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511D6C

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

Preview Lab → · Contrast checker → · Palette generator →

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