#511F88#511F88

#511F88 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.6% C 0.162 H 300.2°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).

Color values

HEX#511F88
RGBrgb(81, 31, 136)
HSLhsl(269, 63%, 33%)
HSVhsv(269, 77%, 53%)
CMYKcmyk(40.4%, 77.2%, 0%, 46.7%)
CIE-LABlab(25.28, 44.13, -49.17)
CIE-LCHlch(25.28, 66.06, 311.91°)
OKLaboklab(37.58% 0.0817 -0.1404)
OKLCHoklch(37.58% 0.162 300.2)
XYZxyz(8.3262, 4.5068, 23.7190)
Luminance0.0451 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F88 #56881F
analogous
#1F2288 #511F88 #851F88
triadic
#511F88 #88511F #1F8851
tetradic
#511F88 #881F22 #56881F #1F8885
square
#511F88 #881F22 #56881F #1F8885
split-complementary
#511F88 #88851F #22881F
monochromatic
#160824 #331456 #511F88 #6F2ABA #8D4BD6

Accessibility & contrast

On white

11.04
#511F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#511F88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F88
11.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F88#FFFFFF#000000##FFFFFF
##511F881.0011.041.9011.04
#FFFFFF11.041.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8B
Deuteranopia (green-blind)
#003B86
Tritanopia (blue-blind)
#443A52
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511f88;
/* rgb */ color: rgb(81, 31, 136);
/* oklch */ color: oklch(37.6% 0.162 300.2);
Tailwind
colors: {
  custom: {
    50: '#8760ac',
    500: '#511f88',
    950: '#000000',
  },
}
SCSS
$custom: #511f88;
$custom-light: #8760ac;
$custom-dark: #000000;
JSON
{
  "hex": "#511f88",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 268.571,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37576,
    "c": 0.16246,
    "h": 300.2
  },
  "luminance": 0.04507
}

Semantic roles & 50–950 ramp

primary
#511F88
secondary
#84B94A
accent
#E64298
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511F88

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

Preview Lab → · Contrast checker → · Palette generator →

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