#511981#511981

#511981 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.3% C 0.161 H 303.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#511981
RGBrgb(81, 25, 129)
HSLhsl(272, 68%, 30%)
HSVhsv(272, 81%, 51%)
CMYKcmyk(37.2%, 80.6%, 0%, 49.4%)
CIE-LABlab(23.77, 44.95, -47.24)
CIE-LCHlch(23.77, 65.21, 313.58°)
OKLaboklab(36.33% 0.0889 -0.1347)
OKLCHoklch(36.33% 0.161 303.4)
XYZxyz(7.7025, 4.0296, 21.1366)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511981 #498119
analogous
#1D1981 #511981 #81197D
triadic
#511981 #815119 #198151
tetradic
#511981 #811D19 #498119 #197D81
square
#511981 #811D19 #498119 #197D81
split-complementary
#511981 #7D8119 #19811D
monochromatic
#11051A #310F4E #511981 #7123B4 #903BD9

Accessibility & contrast

On white

11.63
#511981 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#511981 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511981
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511981#FFFFFF#000000##FFFFFF
##5119811.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003784
Deuteranopia (green-blind)
#00387F
Tritanopia (blue-blind)
#47354D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511981;
/* rgb */ color: rgb(81, 25, 129);
/* oklch */ color: oklch(36.3% 0.161 303.4);
Tailwind
colors: {
  custom: {
    50: '#875da6',
    500: '#511981',
    950: '#000000',
  },
}
SCSS
$custom: #511981;
$custom-light: #875da6;
$custom-dark: #000000;
JSON
{
  "hex": "#511981",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 129
  },
  "hsl": {
    "h": 272.308,
    "s": 67.532,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36327,
    "c": 0.16144,
    "h": 303.4
  },
  "luminance": 0.0403
}

Semantic roles & 50–950 ramp

primary
#511981
secondary
#76B541
accent
#EA3D8D
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511981

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

Preview Lab → · Contrast checker → · Palette generator →

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