#511874#511874

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

Color values

HEX#511874
RGBrgb(81, 24, 116)
HSLhsl(277, 66%, 27%)
HSVhsv(277, 79%, 45%)
CMYKcmyk(30.2%, 79.3%, 0%, 54.5%)
CIE-LABlab(22.53, 42.23, -40.98)
CIE-LCHlch(22.53, 58.85, 315.86°)
OKLaboklab(35.11% 0.0931 -0.1163)
OKLCHoklch(35.11% 0.149 308.7)
XYZxyz(6.8717, 3.6637, 16.8648)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511874 #3B7418
analogous
#231874 #511874 #741869
triadic
#511874 #745118 #187451
tetradic
#511874 #742318 #3B7418 #186974
square
#511874 #742318 #3B7418 #186974
split-complementary
#511874 #697418 #187423
monochromatic
#120519 #2E0E41 #511874 #7422A7 #9732D5

Accessibility & contrast

On white

12.12
#511874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#511874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511874
12.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511874#FFFFFF#000000##FFFFFF
##5118741.0012.121.7312.12
#FFFFFF12.121.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511874;
/* rgb */ color: rgb(81, 24, 116);
/* oklch */ color: oklch(35.1% 0.149 308.7);
Tailwind
colors: {
  custom: {
    50: '#865c9d',
    500: '#511874',
    950: '#000000',
  },
}
SCSS
$custom: #511874;
$custom-light: #865c9d;
$custom-dark: #000000;
JSON
{
  "hex": "#511874",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 277.174,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.35113,
    "c": 0.14901,
    "h": 308.7
  },
  "luminance": 0.03664
}

Semantic roles & 50–950 ramp

primary
#511874
secondary
#67A93F
accent
#E93F80
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511874

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

Preview Lab → · Contrast checker → · Palette generator →

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