#511F6C#511F6C

#511F6C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.131 H 311.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#511F6C
RGBrgb(81, 31, 108)
HSLhsl(279, 55%, 27%)
HSVhsv(279, 71%, 42%)
CMYKcmyk(25%, 71.3%, 0%, 57.6%)
CIE-LABlab(23.04, 37.13, -34.99)
CIE-LCHlch(23.04, 51.02, 316.69°)
OKLaboklab(35.28% 0.0867 -0.0988)
OKLCHoklch(35.28% 0.131 311.3)
XYZxyz(6.5896, 3.8122, 14.5731)
Luminance0.0381 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F6C #3A6C1F
analogous
#2A1F6C #511F6C #6C1F61
triadic
#511F6C #6C511F #1F6C51
tetradic
#511F6C #6C2A1F #3A6C1F #1F616C
square
#511F6C #6C2A1F #3A6C1F #1F616C
split-complementary
#511F6C #616C1F #1F6C2A
monochromatic
#120718 #2D113C #511F6C #752D9C #973EC8

Accessibility & contrast

On white

11.92
#511F6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511F6C
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F6C#FFFFFF#000000##FFFFFF
##511F6C1.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356E
Deuteranopia (green-blind)
#16386A
Tritanopia (blue-blind)
#4E2F43
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511f6c;
/* rgb */ color: rgb(81, 31, 108);
/* oklch */ color: oklch(35.3% 0.131 311.3);
Tailwind
colors: {
  custom: {
    50: '#855f97',
    500: '#511f6c',
    950: '#000000',
  },
}
SCSS
$custom: #511f6c;
$custom-light: #855f97;
$custom-dark: #000000;
JSON
{
  "hex": "#511f6c",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 108
  },
  "hsl": {
    "h": 278.961,
    "s": 55.396,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35283,
    "c": 0.13147,
    "h": 311.3
  },
  "luminance": 0.03812
}

Semantic roles & 50–950 ramp

primary
#511F6C
secondary
#66A047
accent
#DF497E
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #511F6C

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

Preview Lab → · Contrast checker → · Palette generator →

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