#511F7C#511F7C

#511F7C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.149 H 304.4°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#511F7C
RGBrgb(81, 31, 124)
HSLhsl(272, 60%, 30%)
HSVhsv(272, 75%, 49%)
CMYKcmyk(34.7%, 75%, 0%, 51.4%)
CIE-LABlab(24.27, 41.07, -43.25)
CIE-LCHlch(24.27, 59.64, 313.51°)
OKLaboklab(36.55% 0.0844 -0.1231)
OKLCHoklch(36.55% 0.149 304.4)
XYZxyz(7.5206, 4.1846, 19.4764)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F7C #4A7C1F
analogous
#221F7C #511F7C #7C1F78
triadic
#511F7C #7C511F #1F7C51
tetradic
#511F7C #7C221F #4A7C1F #1F787C
square
#511F7C #7C221F #4A7C1F #1F787C
split-complementary
#511F7C #787C1F #1F7C22
monochromatic
#11071A #31134B #511F7C #712BAD #9045D0

Accessibility & contrast

On white

11.43
#511F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#511F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F7C
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F7C#FFFFFF#000000##FFFFFF
##511F7C1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#49354B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #511f7c;
/* rgb */ color: rgb(81, 31, 124);
/* oklch */ color: oklch(36.5% 0.149 304.4);
Tailwind
colors: {
  custom: {
    50: '#8660a3',
    500: '#511f7c',
    950: '#000000',
  },
}
SCSS
$custom: #511f7c;
$custom-light: #8660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#511f7c",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 272.258,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3655,
    "c": 0.14921,
    "h": 304.4
  },
  "luminance": 0.04185
}

Semantic roles & 50–950 ramp

primary
#511F7C
secondary
#77AF48
accent
#E3458E
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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