#511767#511767

#511767 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.137 H 314.8°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#511767
RGBrgb(81, 23, 103)
HSLhsl(284, 63%, 25%)
HSVhsv(284, 78%, 40%)
CMYKcmyk(21.4%, 77.7%, 0%, 59.6%)
CIE-LABlab(21.36, 39.66, -34.44)
CIE-LCHlch(21.36, 52.52, 319.03°)
OKLaboklab(33.97% 0.0965 -0.0971)
OKLCHoklch(33.97% 0.137 314.8)
XYZxyz(6.1475, 3.3416, 13.1505)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511767 #2D6717
analogous
#291767 #511767 #671755
triadic
#511767 #675117 #176751
tetradic
#511767 #672917 #2D6717 #175567
square
#511767 #672917 #2D6717 #175567
split-complementary
#511767 #556717 #176729
monochromatic
#140619 #2A0C35 #511767 #782299 #A02DCB

Accessibility & contrast

On white

12.59
#511767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511767 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511767
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511767#FFFFFF#000000##FFFFFF
##5117671.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003069
Deuteranopia (green-blind)
#133565
Tritanopia (blue-blind)
#4F283E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511767;
/* rgb */ color: rgb(81, 23, 103);
/* oklch */ color: oklch(34.0% 0.137 314.8);
Tailwind
colors: {
  custom: {
    50: '#855b93',
    500: '#511767',
    950: '#000000',
  },
}
SCSS
$custom: #511767;
$custom-light: #855b93;
$custom-dark: #000000;
JSON
{
  "hex": "#511767",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 283.5,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33969,
    "c": 0.13691,
    "h": 314.8
  },
  "luminance": 0.03341
}

Semantic roles & 50–950 ramp

primary
#511767
secondary
#579D3D
accent
#E7416F
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511767

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

Preview Lab → · Contrast checker → · Palette generator →

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