#511D70#511D70

#511D70 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.139 H 309.7°. Best body text is #FFFFFF at 11.93:1 contrast (WCAG AA passes).

Color values

HEX#511D70
RGBrgb(81, 29, 112)
HSLhsl(278, 59%, 28%)
HSVhsv(278, 74%, 44%)
CMYKcmyk(27.7%, 74.1%, 0%, 56.1%)
CIE-LABlab(22.99, 39.06, -37.66)
CIE-LCHlch(22.99, 54.25, 316.05°)
OKLaboklab(35.34% 0.0886 -0.1066)
OKLCHoklch(35.34% 0.139 309.7)
XYZxyz(6.7568, 3.7980, 15.7032)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511D70 #3C701D
analogous
#271D70 #511D70 #701D66
triadic
#511D70 #70511D #1D7051
tetradic
#511D70 #70271D #3C701D #1D6670
square
#511D70 #70271D #3C701D #1D6670
split-complementary
#511D70 #66701D #1D7027
monochromatic
#120618 #2E103F #511D70 #742AA1 #963BCC

Accessibility & contrast

On white

11.93
#511D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#511D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511D70
11.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511D70#FFFFFF#000000##FFFFFF
##511D701.0011.931.7611.93
#FFFFFF11.931.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#0D386E
Tritanopia (blue-blind)
#4D2F44
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #511d70;
/* rgb */ color: rgb(81, 29, 112);
/* oklch */ color: oklch(35.3% 0.139 309.7);
Tailwind
colors: {
  custom: {
    50: '#855e9a',
    500: '#511d70',
    950: '#000000',
  },
}
SCSS
$custom: #511d70;
$custom-light: #855e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511d70",
  "rgb": {
    "r": 81,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 277.59,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35343,
    "c": 0.13861,
    "h": 309.7
  },
  "luminance": 0.03798
}

Semantic roles & 50–950 ramp

primary
#511D70
secondary
#68A444
accent
#E24680
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511D70

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

Preview Lab → · Contrast checker → · Palette generator →

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