#511E7C#511E7C

#511E7C is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.150 H 304.6°. Best body text is #FFFFFF at 11.50:1 contrast (WCAG AA passes).

Color values

HEX#511E7C
RGBrgb(81, 30, 124)
HSLhsl(273, 61%, 30%)
HSVhsv(273, 76%, 49%)
CMYKcmyk(34.7%, 75.8%, 0%, 51.4%)
CIE-LABlab(24.11, 41.54, -43.52)
CIE-LCHlch(24.11, 60.16, 313.66°)
OKLaboklab(36.43% 0.0854 -0.1238)
OKLCHoklch(36.43% 0.15 304.6)
XYZxyz(7.4949, 4.1331, 19.4678)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511E7C #497C1E
analogous
#221E7C #511E7C #7C1E78
triadic
#511E7C #7C511E #1E7C51
tetradic
#511E7C #7C221E #497C1E #1E787C
square
#511E7C #7C221E #497C1E #1E787C
split-complementary
#511E7C #787C1E #1E7C22
monochromatic
#110619 #31124B #511E7C #712AAD #9043D1

Accessibility & contrast

On white

11.50
#511E7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511E7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511E7C
11.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511E7C#FFFFFF#000000##FFFFFF
##511E7C1.0011.501.8311.50
#FFFFFF11.501.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00397A
Tritanopia (blue-blind)
#49354B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511e7c;
/* rgb */ color: rgb(81, 30, 124);
/* oklch */ color: oklch(36.4% 0.150 304.6);
Tailwind
colors: {
  custom: {
    50: '#865fa3',
    500: '#511e7c',
    950: '#000000',
  },
}
SCSS
$custom: #511e7c;
$custom-light: #865fa3;
$custom-dark: #000000;
JSON
{
  "hex": "#511e7c",
  "rgb": {
    "r": 81,
    "g": 30,
    "b": 124
  },
  "hsl": {
    "h": 272.553,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36433,
    "c": 0.15044,
    "h": 304.6
  },
  "luminance": 0.04133
}

Semantic roles & 50–950 ramp

primary
#511E7C
secondary
#76AF46
accent
#E4448D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511E7C

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

Preview Lab → · Contrast checker → · Palette generator →

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