#511985#511985

#511985 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.166 H 302.0°. Best body text is #FFFFFF at 11.49:1 contrast (WCAG AA passes).

Color values

HEX#511985
RGBrgb(81, 25, 133)
HSLhsl(271, 68%, 31%)
HSVhsv(271, 81%, 52%)
CMYKcmyk(39.1%, 81.2%, 0%, 47.8%)
CIE-LABlab(24.12, 45.94, -49.18)
CIE-LCHlch(24.12, 67.30, 313.05°)
OKLaboklab(36.68% 0.0878 -0.1404)
OKLCHoklch(36.68% 0.166 302)
XYZxyz(7.9736, 4.1380, 22.5644)
Luminance0.0414 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511985 #4D8519
analogous
#1B1985 #511985 #851983
triadic
#511985 #855119 #198551
tetradic
#511985 #851B19 #4D8519 #198385
square
#511985 #851B19 #4D8519 #198385
split-complementary
#511985 #838519 #19851B
monochromatic
#12061E #320F51 #511985 #7023B9 #8F3EDB

Accessibility & contrast

On white

11.49
#511985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#511985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511985
11.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511985#FFFFFF#000000##FFFFFF
##5119851.0011.491.8311.49
#FFFFFF11.491.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003988
Deuteranopia (green-blind)
#003983
Tritanopia (blue-blind)
#46364F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511985;
/* rgb */ color: rgb(81, 25, 133);
/* oklch */ color: oklch(36.7% 0.166 302.0);
Tailwind
colors: {
  custom: {
    50: '#875da9',
    500: '#511985',
    950: '#000000',
  },
}
SCSS
$custom: #511985;
$custom-light: #875da9;
$custom-dark: #000000;
JSON
{
  "hex": "#511985",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 133
  },
  "hsl": {
    "h": 271.111,
    "s": 68.354,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36684,
    "c": 0.16561,
    "h": 302
  },
  "luminance": 0.04138
}

Semantic roles & 50–950 ramp

primary
#511985
secondary
#7BB941
accent
#EB3D91
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #511985

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

Preview Lab → · Contrast checker → · Palette generator →

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