#511B7F#511B7F

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

Color values

HEX#511B7F
RGBrgb(81, 27, 127)
HSLhsl(272, 65%, 30%)
HSVhsv(272, 79%, 50%)
CMYKcmyk(36.2%, 78.7%, 0%, 50.2%)
CIE-LABlab(23.89, 43.62, -45.78)
CIE-LCHlch(23.89, 63.24, 313.62°)
OKLaboklab(36.36% 0.0877 -0.1305)
OKLCHoklch(36.36% 0.157 303.9)
XYZxyz(7.6151, 4.0655, 20.4581)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511B7F #497F1B
analogous
#1F1B7F #511B7F #7F1B7B
triadic
#511B7F #7F511B #1B7F51
tetradic
#511B7F #7F1F1B #497F1B #1B7B7F
square
#511B7F #7F1F1B #497F1B #1B7B7F
split-complementary
#511B7F #7B7F1B #1B7F1F
monochromatic
#11061A #31104D #511B7F #7126B1 #903ED6

Accessibility & contrast

On white

11.58
#511B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511B7F
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511B7F#FFFFFF#000000##FFFFFF
##511B7F1.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#00397D
Tritanopia (blue-blind)
#48354C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511b7f;
/* rgb */ color: rgb(81, 27, 127);
/* oklch */ color: oklch(36.4% 0.157 303.9);
Tailwind
colors: {
  custom: {
    50: '#875ea5',
    500: '#511b7f',
    950: '#000000',
  },
}
SCSS
$custom: #511b7f;
$custom-light: #875ea5;
$custom-dark: #000000;
JSON
{
  "hex": "#511b7f",
  "rgb": {
    "r": 81,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 272.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36356,
    "c": 0.15719,
    "h": 303.9
  },
  "luminance": 0.04066
}

Semantic roles & 50–950 ramp

primary
#511B7F
secondary
#76B343
accent
#E8408D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #511B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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