#511280#511280

#511280 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.167 H 304.6°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#511280
RGBrgb(81, 18, 128)
HSLhsl(274, 75%, 29%)
HSVhsv(274, 86%, 50%)
CMYKcmyk(36.7%, 85.9%, 0%, 49.8%)
CIE-LABlab(22.79, 47.29, -48.20)
CIE-LCHlch(22.79, 67.52, 314.46°)
OKLaboklab(35.62% 0.0948 -0.1375)
OKLCHoklch(35.62% 0.167 304.6)
XYZxyz(7.5050, 3.7405, 20.7445)
Luminance0.0374 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511280 #418012
analogous
#1A1280 #511280 #801278
triadic
#511280 #805112 #128051
tetradic
#511280 #801A12 #418012 #127880
square
#511280 #801A12 #418012 #127880
split-complementary
#511280 #788012 #12801A
monochromatic
#11041B #2F0A4A #511280 #731AB6 #932BE1

Accessibility & contrast

On white

12.01
#511280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#511280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511280
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511280#FFFFFF#000000##FFFFFF
##5112801.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#48314B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #511280;
/* rgb */ color: rgb(81, 18, 128);
/* oklch */ color: oklch(35.6% 0.167 304.6);
Tailwind
colors: {
  custom: {
    50: '#875aa6',
    500: '#511280',
    950: '#000000',
  },
}
SCSS
$custom: #511280;
$custom-light: #875aa6;
$custom-dark: #000000;
JSON
{
  "hex": "#511280",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 274.364,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35622,
    "c": 0.16698,
    "h": 304.6
  },
  "luminance": 0.0374
}

Semantic roles & 50–950 ramp

primary
#511280
secondary
#6EB638
accent
#F23686
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #511280

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

Preview Lab → · Contrast checker → · Palette generator →

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