#511687#511687

#511687 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.6% C 0.171 H 301.7°. Best body text is #FFFFFF at 11.57:1 contrast (WCAG AA passes).

Color values

HEX#511687
RGBrgb(81, 22, 135)
HSLhsl(271, 72%, 31%)
HSVhsv(271, 84%, 53%)
CMYKcmyk(40%, 83.7%, 0%, 47.1%)
CIE-LABlab(23.91, 47.58, -50.78)
CIE-LCHlch(23.91, 69.59, 313.13°)
OKLaboklab(36.59% 0.0895 -0.1451)
OKLCHoklch(36.59% 0.171 301.7)
XYZxyz(8.0524, 4.0724, 23.2788)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511687 #4C8716
analogous
#181687 #511687 #871684
triadic
#511687 #875116 #168751
tetradic
#511687 #871816 #4C8716 #168487
square
#511687 #871816 #4C8716 #168487
split-complementary
#511687 #848716 #168718
monochromatic
#12051E #310D52 #511687 #711FBC #8F39DF

Accessibility & contrast

On white

11.57
#511687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511687
11.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511687#FFFFFF#000000##FFFFFF
##5116871.0011.571.8111.57
#FFFFFF11.571.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388A
Deuteranopia (green-blind)
#003885
Tritanopia (blue-blind)
#453650
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #511687;
/* rgb */ color: rgb(81, 22, 135);
/* oklch */ color: oklch(36.6% 0.171 301.7);
Tailwind
colors: {
  custom: {
    50: '#885cab',
    500: '#511687',
    950: '#000000',
  },
}
SCSS
$custom: #511687;
$custom-light: #885cab;
$custom-dark: #000000;
JSON
{
  "hex": "#511687",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 271.327,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36591,
    "c": 0.17052,
    "h": 301.7
  },
  "luminance": 0.04072
}

Semantic roles & 50–950 ramp

primary
#511687
secondary
#7ABB3E
accent
#EF3990
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #511687

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

Preview Lab → · Contrast checker → · Palette generator →

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