#511074#511074

#511074 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.157 H 309.5°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#511074
RGBrgb(81, 16, 116)
HSLhsl(279, 76%, 26%)
HSVhsv(279, 86%, 45%)
CMYKcmyk(30.2%, 86.2%, 0%, 54.5%)
CIE-LABlab(21.51, 45.18, -42.64)
CIE-LCHlch(21.51, 62.12, 316.66°)
OKLaboklab(34.4% 0.1 -0.1211)
OKLCHoklch(34.4% 0.157 309.5)
XYZxyz(6.7304, 3.3810, 16.8177)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511074 #337410
analogous
#1F1074 #511074 #741065
triadic
#511074 #745110 #107451
tetradic
#511074 #741F10 #337410 #106574
square
#511074 #741F10 #337410 #106574
split-complementary
#511074 #657410 #10741F
monochromatic
#13041B #2B093E #511074 #7717AA #9C1FE0

Accessibility & contrast

On white

12.53
#511074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511074
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511074#FFFFFF#000000##FFFFFF
##5110741.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003472
Tritanopia (blue-blind)
#4C2B44
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511074;
/* rgb */ color: rgb(81, 16, 116);
/* oklch */ color: oklch(34.4% 0.157 309.5);
Tailwind
colors: {
  custom: {
    50: '#86589d',
    500: '#511074',
    950: '#000000',
  },
}
SCSS
$custom: #511074;
$custom-light: #86589d;
$custom-dark: #000000;
JSON
{
  "hex": "#511074",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 279,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.15706,
    "h": 309.5
  },
  "luminance": 0.03381
}

Semantic roles & 50–950 ramp

primary
#511074
secondary
#5EAB35
accent
#F23578
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511074

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

Preview Lab → · Contrast checker → · Palette generator →

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