#511B70#511B70

#511B70 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.141 H 310.0°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#511B70
RGBrgb(81, 27, 112)
HSLhsl(278, 61%, 27%)
HSVhsv(278, 76%, 44%)
CMYKcmyk(27.7%, 75.9%, 0%, 56.1%)
CIE-LABlab(22.66, 39.98, -38.18)
CIE-LCHlch(22.66, 55.29, 316.32°)
OKLaboklab(35.11% 0.0908 -0.1081)
OKLCHoklch(35.11% 0.141 310)
XYZxyz(6.7093, 3.7032, 15.6874)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B70 #3A701B
analogous
#271B70 #511B70 #701B64
triadic
#511B70 #70511B #1B7051
tetradic
#511B70 #70271B #3A701B #1B6470
square
#511B70 #70271B #3A701B #1B6470
split-complementary
#511B70 #64701B #1B7027
monochromatic
#120619 #2D0F3F #511B70 #7527A1 #9737CF

Accessibility & contrast

On white

12.06
#511B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B70
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B70#FFFFFF#000000##FFFFFF
##511B701.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#09376E
Tritanopia (blue-blind)
#4D2E44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511b70;
/* rgb */ color: rgb(81, 27, 112);
/* oklch */ color: oklch(35.1% 0.141 310.0);
Tailwind
colors: {
  custom: {
    50: '#855d9a',
    500: '#511b70',
    950: '#000000',
  },
}
SCSS
$custom: #511b70;
$custom-light: #855d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511b70",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 278.118,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3511,
    "c": 0.14121,
    "h": 310
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#511B70
secondary
#66A542
accent
#E4447E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511B70

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

Preview Lab → · Contrast checker → · Palette generator →

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