#511971#511971

#511971 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.145 H 309.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#511971
RGBrgb(81, 25, 113)
HSLhsl(278, 64%, 27%)
HSVhsv(278, 78%, 44%)
CMYKcmyk(28.3%, 77.9%, 0%, 55.7%)
CIE-LABlab(22.43, 41.10, -39.20)
CIE-LCHlch(22.43, 56.80, 316.35°)
OKLaboklab(34.97% 0.0927 -0.1111)
OKLCHoklch(34.97% 0.145 309.8)
XYZxyz(6.7210, 3.6370, 15.9675)
Luminance0.0364 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511971 #397119
analogous
#251971 #511971 #711965
triadic
#511971 #715119 #197151
tetradic
#511971 #712519 #397119 #196571
square
#511971 #712519 #397119 #196571
split-complementary
#511971 #657119 #197125
monochromatic
#120619 #2D0E3F #511971 #7524A3 #9833D2

Accessibility & contrast

On white

12.16
#511971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511971
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511971#FFFFFF#000000##FFFFFF
##5119711.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#03366F
Tritanopia (blue-blind)
#4C2E44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511971;
/* rgb */ color: rgb(81, 25, 113);
/* oklch */ color: oklch(35.0% 0.145 309.8);
Tailwind
colors: {
  custom: {
    50: '#865c9a',
    500: '#511971',
    950: '#000000',
  },
}
SCSS
$custom: #511971;
$custom-light: #865c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#511971",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 278.182,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.14474,
    "h": 309.8
  },
  "luminance": 0.03637
}

Semantic roles & 50–950 ramp

primary
#511971
secondary
#65A640
accent
#E7417D
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511971

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

Preview Lab → · Contrast checker → · Palette generator →

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