#511770#511770

#511770 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.146 H 310.5°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#511770
RGBrgb(81, 23, 112)
HSLhsl(279, 66%, 26%)
HSVhsv(279, 79%, 44%)
CMYKcmyk(27.7%, 79.5%, 0%, 56.1%)
CIE-LABlab(22.06, 41.71, -39.16)
CIE-LCHlch(22.06, 57.21, 316.80°)
OKLaboklab(34.68% 0.0949 -0.111)
OKLCHoklch(34.68% 0.146 310.5)
XYZxyz(6.6238, 3.5321, 15.6589)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511770 #367017
analogous
#251770 #511770 #701763
triadic
#511770 #705117 #177051
tetradic
#511770 #702517 #367017 #176370
square
#511770 #702517 #367017 #176370
split-complementary
#511770 #637017 #177025
monochromatic
#120519 #2C0D3D #511770 #7621A3 #9A2DD4

Accessibility & contrast

On white

12.31
#511770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511770
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511770#FFFFFF#000000##FFFFFF
##5117701.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#02366E
Tritanopia (blue-blind)
#4D2C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511770;
/* rgb */ color: rgb(81, 23, 112);
/* oklch */ color: oklch(34.7% 0.146 310.5);
Tailwind
colors: {
  custom: {
    50: '#865b9a',
    500: '#511770',
    950: '#000000',
  },
}
SCSS
$custom: #511770;
$custom-light: #865b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511770",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 112
  },
  "hsl": {
    "h": 279.101,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34683,
    "c": 0.14605,
    "h": 310.5
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#511770
secondary
#62A63D
accent
#E93F7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511770

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

Preview Lab → · Contrast checker → · Palette generator →

#511770 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva