#511F6B#511F6B

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

Color values

HEX#511F6B
RGBrgb(81, 31, 107)
HSLhsl(279, 55%, 27%)
HSVhsv(279, 71%, 42%)
CMYKcmyk(24.3%, 71%, 0%, 58%)
CIE-LABlab(22.97, 36.89, -34.46)
CIE-LCHlch(22.97, 50.48, 316.95°)
OKLaboklab(35.21% 0.0868 -0.0972)
OKLCHoklch(35.21% 0.13 311.8)
XYZxyz(6.5367, 3.7910, 14.2945)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F6B #396B1F
analogous
#2B1F6B #511F6B #6B1F5F
triadic
#511F6B #6B511F #1F6B51
tetradic
#511F6B #6B2B1F #396B1F #1F5F6B
square
#511F6B #6B2B1F #396B1F #1F5F6B
split-complementary
#511F6B #5F6B1F #1F6B2B
monochromatic
#120718 #2D113C #511F6B #752D9A #983DC7

Accessibility & contrast

On white

11.94
#511F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F6B
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F6B#FFFFFF#000000##FFFFFF
##511F6B1.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346D
Deuteranopia (green-blind)
#173869
Tritanopia (blue-blind)
#4E2F42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511f6b;
/* rgb */ color: rgb(81, 31, 107);
/* oklch */ color: oklch(35.2% 0.130 311.8);
Tailwind
colors: {
  custom: {
    50: '#855f96',
    500: '#511f6b',
    950: '#000000',
  },
}
SCSS
$custom: #511f6b;
$custom-light: #855f96;
$custom-dark: #000000;
JSON
{
  "hex": "#511f6b",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 279.474,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35208,
    "c": 0.13037,
    "h": 311.8
  },
  "luminance": 0.03791
}

Semantic roles & 50–950 ramp

primary
#511F6B
secondary
#659F47
accent
#DE497C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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