#511972#511972

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

Color values

HEX#511972
RGBrgb(81, 25, 114)
HSLhsl(278, 64%, 27%)
HSVhsv(278, 78%, 45%)
CMYKcmyk(28.9%, 78.1%, 0%, 55.3%)
CIE-LABlab(22.51, 41.34, -39.72)
CIE-LCHlch(22.51, 57.33, 316.14°)
OKLaboklab(35.05% 0.0925 -0.1126)
OKLCHoklch(35.05% 0.146 309.4)
XYZxyz(6.7776, 3.6596, 16.2657)
Luminance0.0366 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511972 #3A7219
analogous
#251972 #511972 #721967
triadic
#511972 #725119 #197251
tetradic
#511972 #722519 #3A7219 #196772
square
#511972 #722519 #3A7219 #196772
split-complementary
#511972 #677219 #197225
monochromatic
#120619 #2D0E40 #511972 #7524A4 #9733D2

Accessibility & contrast

On white

12.13
#511972 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511972
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511972#FFFFFF#000000##FFFFFF
##5119721.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003474
Deuteranopia (green-blind)
#013770
Tritanopia (blue-blind)
#4C2E44
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511972;
/* rgb */ color: rgb(81, 25, 114);
/* oklch */ color: oklch(35.1% 0.146 309.4);
Tailwind
colors: {
  custom: {
    50: '#865c9b',
    500: '#511972',
    950: '#000000',
  },
}
SCSS
$custom: #511972;
$custom-light: #865c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#511972",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 114
  },
  "hsl": {
    "h": 277.753,
    "s": 64.029,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35052,
    "c": 0.14578,
    "h": 309.4
  },
  "luminance": 0.03659
}

Semantic roles & 50–950 ramp

primary
#511972
secondary
#66A740
accent
#E7417E
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #511972

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

Preview Lab → · Contrast checker → · Palette generator →

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