#511B66#511B66

#511B66 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.3% C 0.131 H 314.8°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#511B66
RGBrgb(81, 27, 102)
HSLhsl(283, 58%, 25%)
HSVhsv(283, 74%, 40%)
CMYKcmyk(20.6%, 73.5%, 0%, 60%)
CIE-LABlab(21.92, 37.65, -32.89)
CIE-LCHlch(21.92, 50.00, 318.86°)
OKLaboklab(34.34% 0.0921 -0.0926)
OKLCHoklch(34.34% 0.131 314.8)
XYZxyz(6.1832, 3.4927, 12.9163)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B66 #30661B
analogous
#2B1B66 #511B66 #661B55
triadic
#511B66 #66511B #1B6651
tetradic
#511B66 #662B1B #30661B #1B5566
square
#511B66 #662B1B #30661B #1B5566
split-complementary
#511B66 #55661B #1B662B
monochromatic
#130618 #2B0E36 #511B66 #772896 #9E35C7

Accessibility & contrast

On white

12.36
#511B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B66
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B66#FFFFFF#000000##FFFFFF
##511B661.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003168
Deuteranopia (green-blind)
#183664
Tritanopia (blue-blind)
#4F2A3E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511b66;
/* rgb */ color: rgb(81, 27, 102);
/* oklch */ color: oklch(34.3% 0.131 314.8);
Tailwind
colors: {
  custom: {
    50: '#855d92',
    500: '#511b66',
    950: '#000000',
  },
}
SCSS
$custom: #511b66;
$custom-light: #855d92;
$custom-dark: #000000;
JSON
{
  "hex": "#511b66",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 102
  },
  "hsl": {
    "h": 283.2,
    "s": 58.14,
    "l": 25.294
  },
  "oklch": {
    "l": 0.34341,
    "c": 0.13062,
    "h": 314.8
  },
  "luminance": 0.03493
}

Semantic roles & 50–950 ramp

primary
#511B66
secondary
#5B9B41
accent
#E14672
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B66

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

Preview Lab → · Contrast checker → · Palette generator →

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