#511871#511871

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

Color values

HEX#511871
RGBrgb(81, 24, 113)
HSLhsl(278, 65%, 27%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(28.3%, 78.8%, 0%, 55.7%)
CIE-LABlab(22.28, 41.53, -39.45)
CIE-LCHlch(22.28, 57.27, 316.47°)
OKLaboklab(34.87% 0.0937 -0.1118)
OKLCHoklch(34.87% 0.146 310)
XYZxyz(6.7000, 3.5950, 15.9605)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511871 #387118
analogous
#251871 #511871 #711865
triadic
#511871 #715118 #187151
tetradic
#511871 #712518 #387118 #186571
square
#511871 #712518 #387118 #186571
split-complementary
#511871 #657118 #187125
monochromatic
#120519 #2D0D3F #511871 #7523A3 #9930D3

Accessibility & contrast

On white

12.22
#511871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511871
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511871#FFFFFF#000000##FFFFFF
##5118711.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#01366F
Tritanopia (blue-blind)
#4C2D43
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #511871;
/* rgb */ color: rgb(81, 24, 113);
/* oklch */ color: oklch(34.9% 0.146 310.0);
Tailwind
colors: {
  custom: {
    50: '#865c9a',
    500: '#511871',
    950: '#000000',
  },
}
SCSS
$custom: #511871;
$custom-light: #865c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511871",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 278.427,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.34866,
    "c": 0.14592,
    "h": 310
  },
  "luminance": 0.03595
}

Semantic roles & 50–950 ramp

primary
#511871
secondary
#64A63E
accent
#E8407C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511871

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

Preview Lab → · Contrast checker → · Palette generator →

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