#511C70#511C70

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

Color values

HEX#511C70
RGBrgb(81, 28, 112)
HSLhsl(278, 60%, 27%)
HSVhsv(278, 75%, 44%)
CMYKcmyk(27.7%, 75%, 0%, 56.1%)
CIE-LABlab(22.83, 39.52, -37.92)
CIE-LCHlch(22.83, 54.78, 316.18°)
OKLaboklab(35.23% 0.0897 -0.1074)
OKLCHoklch(35.23% 0.14 309.9)
XYZxyz(6.7326, 3.7498, 15.6952)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511C70 #3B701C
analogous
#271C70 #511C70 #701C65
triadic
#511C70 #70511C #1C7051
tetradic
#511C70 #70271C #3B701C #1C6570
square
#511C70 #70271C #3B701C #1C6570
split-complementary
#511C70 #65701C #1C7027
monochromatic
#120618 #2E103F #511C70 #7428A1 #9739CD

Accessibility & contrast

On white

12.00
#511C70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511C70
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511C70#FFFFFF#000000##FFFFFF
##511C701.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#0B376E
Tritanopia (blue-blind)
#4D2F44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511c70;
/* rgb */ color: rgb(81, 28, 112);
/* oklch */ color: oklch(35.2% 0.140 309.9);
Tailwind
colors: {
  custom: {
    50: '#855e9a',
    500: '#511c70',
    950: '#000000',
  },
}
SCSS
$custom: #511c70;
$custom-light: #855e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511c70",
  "rgb": {
    "r": 81,
    "g": 28,
    "b": 112
  },
  "hsl": {
    "h": 277.857,
    "s": 60,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35225,
    "c": 0.13993,
    "h": 309.9
  },
  "luminance": 0.0375
}

Semantic roles & 50–950 ramp

primary
#511C70
secondary
#67A543
accent
#E3457F
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511C70

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

Preview Lab → · Contrast checker → · Palette generator →

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