#511B74#511B74

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

Color values

HEX#511B74
RGBrgb(81, 27, 116)
HSLhsl(276, 62%, 28%)
HSVhsv(276, 77%, 45%)
CMYKcmyk(30.2%, 76.7%, 0%, 54.5%)
CIE-LABlab(22.98, 40.94, -40.25)
CIE-LCHlch(22.98, 57.41, 315.49°)
OKLaboklab(35.43% 0.0901 -0.1142)
OKLCHoklch(35.43% 0.145 308.3)
XYZxyz(6.9370, 3.7943, 16.8865)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B74 #3E741B
analogous
#241B74 #511B74 #741B6B
triadic
#511B74 #74511B #1B7451
tetradic
#511B74 #74241B #3E741B #1B6B74
square
#511B74 #74241B #3E741B #1B6B74
split-complementary
#511B74 #6B741B #1B7424
monochromatic
#110619 #2E0F42 #511B74 #7427A6 #9539D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511B74#FFFFFF#000000##FFFFFF
##511B741.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)
#003577
Deuteranopia (green-blind)
#003772
Tritanopia (blue-blind)
#4B3046
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511b74;
/* rgb */ color: rgb(81, 27, 116);
/* oklch */ color: oklch(35.4% 0.145 308.3);
Tailwind
colors: {
  custom: {
    50: '#865d9d',
    500: '#511b74',
    950: '#000000',
  },
}
SCSS
$custom: #511b74;
$custom-light: #865d9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511b74",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 276.404,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35432,
    "c": 0.14547,
    "h": 308.3
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#511B74
secondary
#6AA942
accent
#E54283
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511B74

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

Preview Lab → · Contrast checker → · Palette generator →

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