#511B71#511B71

#511B71 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.142 H 309.6°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#511B71
RGBrgb(81, 27, 113)
HSLhsl(278, 61%, 27%)
HSVhsv(278, 76%, 44%)
CMYKcmyk(28.3%, 76.1%, 0%, 55.7%)
CIE-LABlab(22.74, 40.22, -38.70)
CIE-LCHlch(22.74, 55.82, 316.10°)
OKLaboklab(35.19% 0.0906 -0.1097)
OKLCHoklch(35.19% 0.142 309.6)
XYZxyz(6.7653, 3.7256, 15.9823)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B71 #3B711B
analogous
#261B71 #511B71 #711B66
triadic
#511B71 #71511B #1B7151
tetradic
#511B71 #71261B #3B711B #1B6671
square
#511B71 #71261B #3B711B #1B6671
split-complementary
#511B71 #66711B #1B7126
monochromatic
#120619 #2E0F40 #511B71 #7427A2 #9737CF

Accessibility & contrast

On white

12.03
#511B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B71
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B71#FFFFFF#000000##FFFFFF
##511B711.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003473
Deuteranopia (green-blind)
#07376F
Tritanopia (blue-blind)
#4C2F44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511b71;
/* rgb */ color: rgb(81, 27, 113);
/* oklch */ color: oklch(35.2% 0.142 309.6);
Tailwind
colors: {
  custom: {
    50: '#855d9a',
    500: '#511b71',
    950: '#000000',
  },
}
SCSS
$custom: #511b71;
$custom-light: #855d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511b71",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 277.674,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3519,
    "c": 0.14228,
    "h": 309.6
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#511B71
secondary
#67A642
accent
#E5437F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511B71

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

Preview Lab → · Contrast checker → · Palette generator →

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