#511B8E#511B8E

#511B8E is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.173 H 298.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#511B8E
RGBrgb(81, 27, 142)
HSLhsl(268, 68%, 33%)
HSVhsv(268, 81%, 56%)
CMYKcmyk(43%, 81%, 0%, 44.3%)
CIE-LABlab(25.22, 47.38, -53.01)
CIE-LCHlch(25.22, 71.10, 311.79°)
OKLaboklab(37.7% 0.0834 -0.1517)
OKLCHoklch(37.7% 0.173 298.8)
XYZxyz(8.6665, 4.4861, 25.9952)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B8E #588E1B
analogous
#1B1E8E #511B8E #8A1B8E
triadic
#511B8E #8E511B #1B8E51
tetradic
#511B8E #8E1B1E #588E1B #1B8E8A
square
#511B8E #8E1B1E #588E1B #1B8E8A
split-complementary
#511B8E #8E8A1B #1E8E1B
monochromatic
#160727 #34115B #511B8E #6E25C1 #8D47DC

Accessibility & contrast

On white

11.07
#511B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B8E
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B8E#FFFFFF#000000##FFFFFF
##511B8E1.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C91
Deuteranopia (green-blind)
#003B8C
Tritanopia (blue-blind)
#423B55
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #511b8e;
/* rgb */ color: rgb(81, 27, 142);
/* oklch */ color: oklch(37.7% 0.173 298.8);
Tailwind
colors: {
  custom: {
    50: '#885fb0',
    500: '#511b8e',
    950: '#000000',
  },
}
SCSS
$custom: #511b8e;
$custom-light: #885fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#511b8e",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 268.174,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37697,
    "c": 0.17312,
    "h": 298.8
  },
  "luminance": 0.04486
}

Semantic roles & 50–950 ramp

primary
#511B8E
secondary
#86BE47
accent
#EB3D99
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #511B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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