#511E6C#511E6C

#511E6C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.2% C 0.133 H 311.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#511E6C
RGBrgb(81, 30, 108)
HSLhsl(279, 57%, 27%)
HSVhsv(279, 72%, 42%)
CMYKcmyk(25%, 72.2%, 0%, 57.6%)
CIE-LABlab(22.86, 37.62, -35.28)
CIE-LCHlch(22.86, 51.57, 316.84°)
OKLaboklab(35.16% 0.088 -0.0996)
OKLCHoklch(35.16% 0.133 311.4)
XYZxyz(6.5639, 3.7607, 14.5646)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E6C #396C1E
analogous
#2A1E6C #511E6C #6C1E60
triadic
#511E6C #6C511E #1E6C51
tetradic
#511E6C #6C2A1E #396C1E #1E606C
square
#511E6C #6C2A1E #396C1E #1E606C
split-complementary
#511E6C #606C1E #1E6C2A
monochromatic
#120718 #2D113C #511E6C #752B9C #983CC9

Accessibility & contrast

On white

11.98
#511E6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511E6C
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E6C#FFFFFF#000000##FFFFFF
##511E6C1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511e6c;
/* rgb */ color: rgb(81, 30, 108);
/* oklch */ color: oklch(35.2% 0.133 311.4);
Tailwind
colors: {
  custom: {
    50: '#855e97',
    500: '#511e6c',
    950: '#000000',
  },
}
SCSS
$custom: #511e6c;
$custom-light: #855e97;
$custom-dark: #000000;
JSON
{
  "hex": "#511e6c",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 108
  },
  "hsl": {
    "h": 279.231,
    "s": 56.522,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35157,
    "c": 0.13289,
    "h": 311.4
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

primary
#511E6C
secondary
#65A045
accent
#E0487D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511E6C

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

Preview Lab → · Contrast checker → · Palette generator →

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