#511B68#511B68

#511B68 is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.133 H 313.8°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#511B68
RGBrgb(81, 27, 104)
HSLhsl(282, 59%, 26%)
HSVhsv(282, 74%, 41%)
CMYKcmyk(22.1%, 74%, 0%, 59.2%)
CIE-LABlab(22.06, 38.11, -33.97)
CIE-LCHlch(22.06, 51.05, 318.29°)
OKLaboklab(34.49% 0.0919 -0.0958)
OKLCHoklch(34.49% 0.133 313.8)
XYZxyz(6.2835, 3.5329, 13.4449)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B68 #32681B
analogous
#2A1B68 #511B68 #681B58
triadic
#511B68 #68511B #1B6851
tetradic
#511B68 #682A1B #32681B #1B5868
square
#511B68 #682A1B #32681B #1B5868
split-complementary
#511B68 #58681B #1B682A
monochromatic
#130618 #2B0E37 #511B68 #772899 #9D34C9

Accessibility & contrast

On white

12.31
#511B68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511B68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##511B68#FFFFFF#000000##FFFFFF
##511B681.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)
#00326A
Deuteranopia (green-blind)
#163666
Tritanopia (blue-blind)
#4F2B3F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511b68;
/* rgb */ color: rgb(81, 27, 104);
/* oklch */ color: oklch(34.5% 0.133 313.8);
Tailwind
colors: {
  custom: {
    50: '#855d94',
    500: '#511b68',
    950: '#000000',
  },
}
SCSS
$custom: #511b68;
$custom-light: #855d94;
$custom-dark: #000000;
JSON
{
  "hex": "#511b68",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 104
  },
  "hsl": {
    "h": 282.078,
    "s": 58.779,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34491,
    "c": 0.13274,
    "h": 313.8
  },
  "luminance": 0.03533
}

Semantic roles & 50–950 ramp

primary
#511B68
secondary
#5D9D42
accent
#E24674
background
#F8F5F9
surface
#EFE9F1
border
#CAC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511B68

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

Preview Lab → · Contrast checker → · Palette generator →

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