#511B75#511B75

#511B75 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.147 H 307.8°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#511B75
RGBrgb(81, 27, 117)
HSLhsl(276, 63%, 28%)
HSVhsv(276, 77%, 46%)
CMYKcmyk(30.8%, 76.9%, 0%, 54.1%)
CIE-LABlab(23.06, 41.18, -40.76)
CIE-LCHlch(23.06, 57.94, 315.29°)
OKLaboklab(35.51% 0.0899 -0.1157)
OKLCHoklch(35.51% 0.147 307.8)
XYZxyz(6.9955, 3.8177, 17.1945)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B75 #3F751B
analogous
#241B75 #511B75 #751B6C
triadic
#511B75 #75511B #1B7551
tetradic
#511B75 #75241B #3F751B #1B6C75
square
#511B75 #75241B #3F751B #1B6C75
split-complementary
#511B75 #6C751B #1B7524
monochromatic
#110619 #2F1043 #511B75 #7326A7 #9439D1

Accessibility & contrast

On white

11.91
#511B75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B75
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B75#FFFFFF#000000##FFFFFF
##511B751.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003578
Deuteranopia (green-blind)
#003773
Tritanopia (blue-blind)
#4B3046
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511b75;
/* rgb */ color: rgb(81, 27, 117);
/* oklch */ color: oklch(35.5% 0.147 307.8);
Tailwind
colors: {
  custom: {
    50: '#865d9d',
    500: '#511b75',
    950: '#000000',
  },
}
SCSS
$custom: #511b75;
$custom-light: #865d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511b75",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 117
  },
  "hsl": {
    "h": 276,
    "s": 62.5,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35514,
    "c": 0.14654,
    "h": 307.8
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

primary
#511B75
secondary
#6CA942
accent
#E64284
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511B75

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

Preview Lab → · Contrast checker → · Palette generator →

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