#511F71#511F71

#511F71 is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.7% C 0.137 H 309.0°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#511F71
RGBrgb(81, 31, 113)
HSLhsl(277, 57%, 28%)
HSVhsv(277, 73%, 44%)
CMYKcmyk(28.3%, 72.6%, 0%, 55.7%)
CIE-LABlab(23.41, 38.34, -37.62)
CIE-LCHlch(23.41, 53.71, 315.54°)
OKLaboklab(35.67% 0.0862 -0.1065)
OKLCHoklch(35.67% 0.137 309)
XYZxyz(6.8634, 3.9217, 16.0150)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511F71 #3F711F
analogous
#281F71 #511F71 #711F68
triadic
#511F71 #71511F #1F7151
tetradic
#511F71 #71281F #3F711F #1F6871
square
#511F71 #71281F #3F711F #1F6871
split-complementary
#511F71 #68711F #1F7128
monochromatic
#110718 #2F1241 #511F71 #732CA1 #9440CB

Accessibility & contrast

On white

11.77
#511F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#511F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511F71
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511F71#FFFFFF#000000##FFFFFF
##511F711.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#0E386F
Tritanopia (blue-blind)
#4C3145
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #511f71;
/* rgb */ color: rgb(81, 31, 113);
/* oklch */ color: oklch(35.7% 0.137 309.0);
Tailwind
colors: {
  custom: {
    50: '#855f9a',
    500: '#511f71',
    950: '#000000',
  },
}
SCSS
$custom: #511f71;
$custom-light: #855f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511f71",
  "rgb": {
    "r": 81,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 276.585,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35666,
    "c": 0.13701,
    "h": 309
  },
  "luminance": 0.03922
}

Semantic roles & 50–950 ramp

primary
#511F71
secondary
#6CA547
accent
#E04883
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #511F71

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

Preview Lab → · Contrast checker → · Palette generator →

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