#511B7E#511B7E

#511B7E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.156 H 304.3°. Best body text is #FFFFFF at 11.62:1 contrast (WCAG AA passes).

Color values

HEX#511B7E
RGBrgb(81, 27, 126)
HSLhsl(273, 65%, 30%)
HSVhsv(273, 79%, 49%)
CMYKcmyk(35.7%, 78.6%, 0%, 50.6%)
CIE-LABlab(23.80, 43.38, -45.29)
CIE-LCHlch(23.80, 62.71, 313.77°)
OKLaboklab(36.27% 0.0879 -0.129)
OKLCHoklch(36.27% 0.156 304.3)
XYZxyz(7.5503, 4.0396, 20.1166)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B7E #487E1B
analogous
#1F1B7E #511B7E #7E1B7A
triadic
#511B7E #7E511B #1B7E51
tetradic
#511B7E #7E1F1B #487E1B #1B7A7E
square
#511B7E #7E1F1B #487E1B #1B7A7E
split-complementary
#511B7E #7A7E1B #1B7E1F
monochromatic
#100519 #31104C #511B7E #7126B0 #913ED6

Accessibility & contrast

On white

11.62
#511B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511B7E
11.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B7E#FFFFFF#000000##FFFFFF
##511B7E1.0011.621.8111.62
#FFFFFF11.621.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003781
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#48344C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511b7e;
/* rgb */ color: rgb(81, 27, 126);
/* oklch */ color: oklch(36.3% 0.156 304.3);
Tailwind
colors: {
  custom: {
    50: '#875ea4',
    500: '#511b7e',
    950: '#000000',
  },
}
SCSS
$custom: #511b7e;
$custom-light: #875ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#511b7e",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 272.727,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.3627,
    "c": 0.15611,
    "h": 304.3
  },
  "luminance": 0.0404
}

Semantic roles & 50–950 ramp

primary
#511B7E
secondary
#75B243
accent
#E8408C
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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