#511674#511674

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

Color values

HEX#511674
RGBrgb(81, 22, 116)
HSLhsl(278, 68%, 27%)
HSVhsv(278, 81%, 45%)
CMYKcmyk(30.2%, 81%, 0%, 54.5%)
CIE-LABlab(22.25, 43.04, -41.44)
CIE-LCHlch(22.25, 59.74, 316.09°)
OKLaboklab(34.92% 0.095 -0.1177)
OKLCHoklch(34.92% 0.151 308.9)
XYZxyz(6.8320, 3.5842, 16.8515)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511674 #397416
analogous
#221674 #511674 #741668
triadic
#511674 #745116 #167451
tetradic
#511674 #742216 #397416 #166874
square
#511674 #742216 #397416 #166874
split-complementary
#511674 #687416 #167422
monochromatic
#12051A #2D0C41 #511674 #7520A7 #982DD7

Accessibility & contrast

On white

12.23
#511674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511674
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511674#FFFFFF#000000##FFFFFF
##5116741.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003377
Deuteranopia (green-blind)
#003672
Tritanopia (blue-blind)
#4C2E45
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511674;
/* rgb */ color: rgb(81, 22, 116);
/* oklch */ color: oklch(34.9% 0.151 308.9);
Tailwind
colors: {
  custom: {
    50: '#865b9d',
    500: '#511674',
    950: '#000000',
  },
}
SCSS
$custom: #511674;
$custom-light: #865b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511674",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 277.66,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34916,
    "c": 0.15122,
    "h": 308.9
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#511674
secondary
#65AA3C
accent
#EB3D7E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511674

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

Preview Lab → · Contrast checker → · Palette generator →

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