#511668#511668

#511668 is a dark, vivid purple. Relative luminance 0.033; OKLCH L 33.9% C 0.139 H 314.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).

Color values

HEX#511668
RGBrgb(81, 22, 104)
HSLhsl(283, 65%, 25%)
HSVhsv(283, 79%, 41%)
CMYKcmyk(22.1%, 78.8%, 0%, 59.2%)
CIE-LABlab(21.29, 40.30, -35.21)
CIE-LCHlch(21.29, 53.51, 318.85°)
OKLaboklab(33.94% 0.0974 -0.0994)
OKLCHoklch(33.94% 0.139 314.4)
XYZxyz(6.1785, 3.3228, 13.4099)
Luminance0.0332 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511668 #2D6816
analogous
#281668 #511668 #681656
triadic
#511668 #685116 #166851
tetradic
#511668 #682816 #2D6816 #165668
square
#511668 #682816 #2D6816 #165668
split-complementary
#511668 #566816 #166828
monochromatic
#140519 #2A0B35 #511668 #78219B #A02BCD

Accessibility & contrast

On white

12.62
#511668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#511668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511668
12.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511668#FFFFFF#000000##FFFFFF
##5116681.0012.621.6612.62
#FFFFFF12.621.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306A
Deuteranopia (green-blind)
#113566
Tritanopia (blue-blind)
#4F283E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511668;
/* rgb */ color: rgb(81, 22, 104);
/* oklch */ color: oklch(33.9% 0.139 314.4);
Tailwind
colors: {
  custom: {
    50: '#855a94',
    500: '#511668',
    950: '#000000',
  },
}
SCSS
$custom: #511668;
$custom-light: #855a94;
$custom-dark: #000000;
JSON
{
  "hex": "#511668",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 283.171,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.33944,
    "c": 0.13914,
    "h": 314.4
  },
  "luminance": 0.03323
}

Semantic roles & 50–950 ramp

primary
#511668
secondary
#579F3B
accent
#E8406F
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511668

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

Preview Lab → · Contrast checker → · Palette generator →

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