#511699#511699

#511699 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.3% C 0.189 H 296.1°. Best body text is #FFFFFF at 10.91:1 contrast (WCAG AA passes).

Color values

HEX#511699
RGBrgb(81, 22, 153)
HSLhsl(267, 75%, 34%)
HSVhsv(267, 86%, 60%)
CMYKcmyk(47.1%, 85.6%, 0%, 40%)
CIE-LABlab(25.63, 52.01, -59.12)
CIE-LCHlch(25.63, 78.74, 311.34°)
OKLaboklab(38.3% 0.0831 -0.1696)
OKLCHoklch(38.3% 0.189 296.1)
XYZxyz(9.4285, 4.6228, 30.5263)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511699 #5E9916
analogous
#161D99 #511699 #931699
triadic
#511699 #995116 #169951
tetradic
#511699 #99161D #5E9916 #169993
square
#511699 #99161D #5E9916 #169993
split-complementary
#511699 #999316 #1D9916
monochromatic
#18072E #350E63 #511699 #6D1ECF #8D45E4

Accessibility & contrast

On white

10.91
#511699 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#511699 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511699
10.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511699#FFFFFF#000000##FFFFFF
##5116991.0010.911.9210.91
#FFFFFF10.911.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#3C3E5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #511699;
/* rgb */ color: rgb(81, 22, 153);
/* oklch */ color: oklch(38.3% 0.189 296.1);
Tailwind
colors: {
  custom: {
    50: '#8a5db8',
    500: '#511699',
    950: '#000000',
  },
}
SCSS
$custom: #511699;
$custom-light: #8a5db8;
$custom-dark: #000000;
JSON
{
  "hex": "#511699",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 153
  },
  "hsl": {
    "h": 267.023,
    "s": 74.857,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38304,
    "c": 0.18884,
    "h": 296.1
  },
  "luminance": 0.04623
}

Semantic roles & 50–950 ramp

primary
#511699
secondary
#8CC546
accent
#F1369D
background
#F9F5FB
surface
#F1E9F6
border
#CBC5D0
text
#0D0511
muted
#7E7980

Preview Lab

Preview with #511699

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

Preview Lab → · Contrast checker → · Palette generator →

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