#511672#511672

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

Color values

HEX#511672
RGBrgb(81, 22, 114)
HSLhsl(278, 68%, 27%)
HSVhsv(278, 81%, 45%)
CMYKcmyk(28.9%, 80.7%, 0%, 55.3%)
CIE-LABlab(22.08, 42.57, -40.42)
CIE-LCHlch(22.08, 58.70, 316.49°)
OKLaboklab(34.75% 0.0954 -0.1147)
OKLCHoklch(34.75% 0.149 309.8)
XYZxyz(6.7169, 3.5382, 16.2454)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511672 #377216
analogous
#231672 #511672 #721665
triadic
#511672 #725116 #167251
tetradic
#511672 #722316 #377216 #166572
square
#511672 #722316 #377216 #166572
split-complementary
#511672 #657216 #167223
monochromatic
#12051A #2D0C3F #511672 #7520A5 #992CD6

Accessibility & contrast

On white

12.30
#511672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#511672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511672
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511672#FFFFFF#000000##FFFFFF
##5116721.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003275
Deuteranopia (green-blind)
#003670
Tritanopia (blue-blind)
#4C2D44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511672;
/* rgb */ color: rgb(81, 22, 114);
/* oklch */ color: oklch(34.7% 0.149 309.8);
Tailwind
colors: {
  custom: {
    50: '#865b9b',
    500: '#511672',
    950: '#000000',
  },
}
SCSS
$custom: #511672;
$custom-light: #865b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511672",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 278.478,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34749,
    "c": 0.1492,
    "h": 309.8
  },
  "luminance": 0.03538
}

Semantic roles & 50–950 ramp

primary
#511672
secondary
#63A83C
accent
#EB3D7B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511672

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

Preview Lab → · Contrast checker → · Palette generator →

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