#511769#511769

#511769 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.139 H 313.8°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#511769
RGBrgb(81, 23, 105)
HSLhsl(282, 64%, 25%)
HSVhsv(282, 78%, 41%)
CMYKcmyk(22.9%, 78.1%, 0%, 58.8%)
CIE-LABlab(21.51, 40.11, -35.50)
CIE-LCHlch(21.51, 53.56, 318.48°)
OKLaboklab(34.12% 0.0962 -0.1002)
OKLCHoklch(34.12% 0.139 313.8)
XYZxyz(6.2491, 3.3822, 13.6855)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511769 #2F6917
analogous
#281769 #511769 #691758
triadic
#511769 #695117 #176951
tetradic
#511769 #692817 #2F6917 #175869
square
#511769 #692817 #2F6917 #175869
split-complementary
#511769 #586917 #176928
monochromatic
#130519 #2A0C37 #511769 #78229B #9E2DCD

Accessibility & contrast

On white

12.53
#511769 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511769 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511769
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511769#FFFFFF#000000##FFFFFF
##5117691.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316B
Deuteranopia (green-blind)
#113567
Tritanopia (blue-blind)
#4F293F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511769;
/* rgb */ color: rgb(81, 23, 105);
/* oklch */ color: oklch(34.1% 0.139 313.8);
Tailwind
colors: {
  custom: {
    50: '#855b94',
    500: '#511769',
    950: '#000000',
  },
}
SCSS
$custom: #511769;
$custom-light: #855b94;
$custom-dark: #000000;
JSON
{
  "hex": "#511769",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 105
  },
  "hsl": {
    "h": 282.439,
    "s": 64.063,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34124,
    "c": 0.13893,
    "h": 313.8
  },
  "luminance": 0.03382
}

Semantic roles & 50–950 ramp

primary
#511769
secondary
#599F3D
accent
#E74171
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511769

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

Preview Lab → · Contrast checker → · Palette generator →

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