#511774#511774

#511774 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.150 H 308.8°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#511774
RGBrgb(81, 23, 116)
HSLhsl(277, 67%, 27%)
HSVhsv(277, 80%, 45%)
CMYKcmyk(30.2%, 80.2%, 0%, 54.5%)
CIE-LABlab(22.38, 42.64, -41.21)
CIE-LCHlch(22.38, 59.30, 315.97°)
OKLaboklab(35.01% 0.0941 -0.117)
OKLCHoklch(35.01% 0.15 308.8)
XYZxyz(6.8515, 3.6232, 16.8580)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511774 #3A7417
analogous
#221774 #511774 #741769
triadic
#511774 #745117 #177451
tetradic
#511774 #742217 #3A7417 #176974
square
#511774 #742217 #3A7417 #176974
split-complementary
#511774 #697417 #177422
monochromatic
#12051A #2D0D41 #511774 #7521A7 #9730D6

Accessibility & contrast

On white

12.18
#511774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511774
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511774#FFFFFF#000000##FFFFFF
##5117741.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4C2E45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511774;
/* rgb */ color: rgb(81, 23, 116);
/* oklch */ color: oklch(35.0% 0.150 308.8);
Tailwind
colors: {
  custom: {
    50: '#865b9d',
    500: '#511774',
    950: '#000000',
  },
}
SCSS
$custom: #511774;
$custom-light: #865b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511774",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 277.419,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35013,
    "c": 0.15014,
    "h": 308.8
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#511774
secondary
#66A93D
accent
#EA3E7F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511774

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

Preview Lab → · Contrast checker → · Palette generator →

#511774 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva