#511374#511374

#511374 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.154 H 309.2°. Best body text is #FFFFFF at 12.39:1 contrast (WCAG AA passes).

Color values

HEX#511374
RGBrgb(81, 19, 116)
HSLhsl(278, 72%, 26%)
HSVhsv(278, 84%, 45%)
CMYKcmyk(30.2%, 83.6%, 0%, 54.5%)
CIE-LABlab(21.86, 44.16, -42.07)
CIE-LCHlch(21.86, 60.99, 316.39°)
OKLaboklab(34.64% 0.0976 -0.1195)
OKLCHoklch(34.64% 0.154 309.2)
XYZxyz(6.7780, 3.4762, 16.8335)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511374 #367413
analogous
#211374 #511374 #741367
triadic
#511374 #745113 #137451
tetradic
#511374 #742113 #367413 #136774
square
#511374 #742113 #367413 #136774
split-complementary
#511374 #677413 #137421
monochromatic
#12041A #2C0A3F #511374 #761CA9 #9A26DB

Accessibility & contrast

On white

12.39
#511374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511374
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511374#FFFFFF#000000##FFFFFF
##5113741.0012.391.7012.39
#FFFFFF12.391.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003572
Tritanopia (blue-blind)
#4C2C44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511374;
/* rgb */ color: rgb(81, 19, 116);
/* oklch */ color: oklch(34.6% 0.154 309.2);
Tailwind
colors: {
  custom: {
    50: '#865a9d',
    500: '#511374',
    950: '#000000',
  },
}
SCSS
$custom: #511374;
$custom-light: #865a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511374",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 278.351,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.34644,
    "c": 0.15429,
    "h": 309.2
  },
  "luminance": 0.03476
}

Semantic roles & 50–950 ramp

primary
#511374
secondary
#62AA38
accent
#EF397B
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511374

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

Preview Lab → · Contrast checker → · Palette generator →

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