#511276#511276

#511276 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.157 H 308.5°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#511276
RGBrgb(81, 18, 118)
HSLhsl(278, 74%, 27%)
HSVhsv(278, 85%, 46%)
CMYKcmyk(31.4%, 84.7%, 0%, 53.7%)
CIE-LABlab(21.91, 44.97, -43.27)
CIE-LCHlch(21.91, 62.41, 316.10°)
OKLaboklab(34.73% 0.0979 -0.123)
OKLCHoklch(34.73% 0.157 308.5)
XYZxyz(6.8790, 3.4901, 17.4473)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511276 #377612
analogous
#1F1276 #511276 #761269
triadic
#511276 #765112 #127651
tetradic
#511276 #761F12 #377612 #126976
square
#511276 #761F12 #377612 #126976
split-complementary
#511276 #697612 #12761F
monochromatic
#12041B #2D0A41 #511276 #751AAB #9925DE

Accessibility & contrast

On white

12.37
#511276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#511276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511276
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511276#FFFFFF#000000##FFFFFF
##5112761.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#003574
Tritanopia (blue-blind)
#4B2D45
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511276;
/* rgb */ color: rgb(81, 18, 118);
/* oklch */ color: oklch(34.7% 0.157 308.5);
Tailwind
colors: {
  custom: {
    50: '#86599e',
    500: '#511276',
    950: '#000000',
  },
}
SCSS
$custom: #511276;
$custom-light: #86599e;
$custom-dark: #000000;
JSON
{
  "hex": "#511276",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 277.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.34732,
    "c": 0.1572,
    "h": 308.5
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#511276
secondary
#63AD37
accent
#F0387C
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511276

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

Preview Lab → · Contrast checker → · Palette generator →

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