#511C6C#511C6C

#511C6C is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.9% C 0.136 H 311.7°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).

Color values

HEX#511C6C
RGBrgb(81, 28, 108)
HSLhsl(280, 59%, 27%)
HSVhsv(280, 74%, 42%)
CMYKcmyk(25%, 74.1%, 0%, 57.6%)
CIE-LABlab(22.52, 38.58, -35.83)
CIE-LCHlch(22.52, 52.65, 317.12°)
OKLaboklab(34.91% 0.0903 -0.1012)
OKLCHoklch(34.91% 0.136 311.7)
XYZxyz(6.5149, 3.6627, 14.5482)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C6C #376C1C
analogous
#291C6C #511C6C #6C1C5F
triadic
#511C6C #6C511C #1C6C51
tetradic
#511C6C #6C291C #376C1C #1C5F6C
square
#511C6C #6C291C #376C1C #1C5F6C
split-complementary
#511C6C #5F6C1C #1C6C29
monochromatic
#120618 #2D0F3B #511C6C #75299D #9937CB

Accessibility & contrast

On white

12.12
#511C6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C6C
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C6C#FFFFFF#000000##FFFFFF
##511C6C1.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336E
Deuteranopia (green-blind)
#12376A
Tritanopia (blue-blind)
#4E2D42
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511c6c;
/* rgb */ color: rgb(81, 28, 108);
/* oklch */ color: oklch(34.9% 0.136 311.7);
Tailwind
colors: {
  custom: {
    50: '#855d97',
    500: '#511c6c',
    950: '#000000',
  },
}
SCSS
$custom: #511c6c;
$custom-light: #855d97;
$custom-dark: #000000;
JSON
{
  "hex": "#511c6c",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 108
  },
  "hsl": {
    "h": 279.75,
    "s": 58.824,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34913,
    "c": 0.13564,
    "h": 311.7
  },
  "luminance": 0.03663
}

Semantic roles & 50–950 ramp

primary
#511C6C
secondary
#63A143
accent
#E2467B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511C6C

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

Preview Lab → · Contrast checker → · Palette generator →

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