#511973#511973

#511973 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.147 H 309.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#511973
RGBrgb(81, 25, 115)
HSLhsl(277, 64%, 27%)
HSVhsv(277, 78%, 45%)
CMYKcmyk(29.6%, 78.3%, 0%, 54.9%)
CIE-LABlab(22.59, 41.57, -40.23)
CIE-LCHlch(22.59, 57.85, 315.94°)
OKLaboklab(35.13% 0.0923 -0.1141)
OKLCHoklch(35.13% 0.147 309)
XYZxyz(6.8349, 3.6825, 16.5671)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511973 #3B7319
analogous
#241973 #511973 #731968
triadic
#511973 #735119 #197351
tetradic
#511973 #732419 #3B7319 #196873
square
#511973 #732419 #3B7319 #196873
split-complementary
#511973 #687319 #197324
monochromatic
#120519 #2E0E41 #511973 #7424A5 #9734D3

Accessibility & contrast

On white

12.09
#511973 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#511973 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511973
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511973#FFFFFF#000000##FFFFFF
##5119731.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003476
Deuteranopia (green-blind)
#003771
Tritanopia (blue-blind)
#4C2F45
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511973;
/* rgb */ color: rgb(81, 25, 115);
/* oklch */ color: oklch(35.1% 0.147 309.0);
Tailwind
colors: {
  custom: {
    50: '#865c9c',
    500: '#511973',
    950: '#000000',
  },
}
SCSS
$custom: #511973;
$custom-light: #865c9c;
$custom-dark: #000000;
JSON
{
  "hex": "#511973",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 115
  },
  "hsl": {
    "h": 277.333,
    "s": 64.286,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35134,
    "c": 0.14682,
    "h": 309
  },
  "luminance": 0.03682
}

Semantic roles & 50–950 ramp

primary
#511973
secondary
#67A840
accent
#E74180
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511973

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

Preview Lab → · Contrast checker → · Palette generator →

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