#511671#511671

#511671 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.148 H 310.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#511671
RGBrgb(81, 22, 113)
HSLhsl(279, 67%, 26%)
HSVhsv(279, 81%, 44%)
CMYKcmyk(28.3%, 80.5%, 0%, 55.7%)
CIE-LABlab(22.00, 42.34, -39.91)
CIE-LCHlch(22.00, 58.18, 316.70°)
OKLaboklab(34.67% 0.0957 -0.1132)
OKLCHoklch(34.67% 0.148 310.2)
XYZxyz(6.6603, 3.5156, 15.9473)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511671 #367116
analogous
#241671 #511671 #711664
triadic
#511671 #715116 #167151
tetradic
#511671 #712416 #367116 #166471
square
#511671 #712416 #367116 #166471
split-complementary
#511671 #647116 #167124
monochromatic
#12051A #2C0C3E #511671 #7620A4 #9A2CD6

Accessibility & contrast

On white

12.33
#511671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511671
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511671#FFFFFF#000000##FFFFFF
##5116711.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003273
Deuteranopia (green-blind)
#00366F
Tritanopia (blue-blind)
#4C2C43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511671;
/* rgb */ color: rgb(81, 22, 113);
/* oklch */ color: oklch(34.7% 0.148 310.2);
Tailwind
colors: {
  custom: {
    50: '#865b9a',
    500: '#511671',
    950: '#000000',
  },
}
SCSS
$custom: #511671;
$custom-light: #865b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511671",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 278.901,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34666,
    "c": 0.14818,
    "h": 310.2
  },
  "luminance": 0.03515
}

Semantic roles & 50–950 ramp

primary
#511671
secondary
#62A73C
accent
#EA3E7A
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511671

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

Preview Lab → · Contrast checker → · Palette generator →

#511671 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva