#511F7A#511F7A

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

Color values

HEX#511F7A
RGBrgb(81, 31, 122)
HSLhsl(273, 59%, 30%)
HSVhsv(273, 75%, 48%)
CMYKcmyk(33.6%, 74.6%, 0%, 52.2%)
CIE-LABlab(24.11, 40.56, -42.24)
CIE-LCHlch(24.11, 58.57, 313.84°)
OKLaboklab(36.39% 0.0847 -0.1201)
OKLCHoklch(36.39% 0.147 305.2)
XYZxyz(7.3954, 4.1345, 18.8170)
Luminance0.0413 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F7A #487A1F
analogous
#241F7A #511F7A #7A1F75
triadic
#511F7A #7A511F #1F7A51
tetradic
#511F7A #7A241F #487A1F #1F757A
square
#511F7A #7A241F #487A1F #1F757A
split-complementary
#511F7A #757A1F #1F7A24
monochromatic
#100618 #311349 #511F7A #712BAB #9144CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##511F7A#FFFFFF#000000##FFFFFF
##511F7A1.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)
#00387D
Deuteranopia (green-blind)
#003978
Tritanopia (blue-blind)
#49354A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511f7a;
/* rgb */ color: rgb(81, 31, 122);
/* oklch */ color: oklch(36.4% 0.147 305.2);
Tailwind
colors: {
  custom: {
    50: '#8660a1',
    500: '#511f7a',
    950: '#000000',
  },
}
SCSS
$custom: #511f7a;
$custom-light: #8660a1;
$custom-dark: #000000;
JSON
{
  "hex": "#511f7a",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 122
  },
  "hsl": {
    "h": 272.967,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.36385,
    "c": 0.14699,
    "h": 305.2
  },
  "luminance": 0.04134
}

Semantic roles & 50–950 ramp

primary
#511F7A
secondary
#75AD47
accent
#E3458C
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511F7A

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

Preview Lab → · Contrast checker → · Palette generator →

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