#511773#511773

#511773 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.149 H 309.2°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#511773
RGBrgb(81, 23, 115)
HSLhsl(278, 67%, 27%)
HSVhsv(278, 80%, 45%)
CMYKcmyk(29.6%, 80%, 0%, 54.9%)
CIE-LABlab(22.30, 42.40, -40.70)
CIE-LCHlch(22.30, 58.78, 316.17°)
OKLaboklab(34.93% 0.0943 -0.1155)
OKLCHoklch(34.93% 0.149 309.2)
XYZxyz(6.7936, 3.6001, 16.5533)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511773 #397317
analogous
#231773 #511773 #731767
triadic
#511773 #735117 #177351
tetradic
#511773 #732317 #397317 #176773
square
#511773 #732317 #397317 #176773
split-complementary
#511773 #677317 #177323
monochromatic
#12051A #2D0D40 #511773 #7521A6 #982FD5

Accessibility & contrast

On white

12.21
#511773 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#511773 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511773
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511773#FFFFFF#000000##FFFFFF
##5117731.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003376
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#4C2E44
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511773;
/* rgb */ color: rgb(81, 23, 115);
/* oklch */ color: oklch(34.9% 0.149 309.2);
Tailwind
colors: {
  custom: {
    50: '#865b9c',
    500: '#511773',
    950: '#000000',
  },
}
SCSS
$custom: #511773;
$custom-light: #865b9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511773",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 115
  },
  "hsl": {
    "h": 277.826,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3493,
    "c": 0.14912,
    "h": 309.2
  },
  "luminance": 0.036
}

Semantic roles & 50–950 ramp

primary
#511773
secondary
#65A93D
accent
#EA3E7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511773

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

Preview Lab → · Contrast checker → · Palette generator →

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