#511273#511273

#511273 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.154 H 309.8°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#511273
RGBrgb(81, 18, 115)
HSLhsl(279, 73%, 26%)
HSVhsv(279, 84%, 45%)
CMYKcmyk(29.6%, 84.3%, 0%, 54.9%)
CIE-LABlab(21.65, 44.29, -41.76)
CIE-LCHlch(21.65, 60.87, 316.68°)
OKLaboklab(34.47% 0.0987 -0.1186)
OKLCHoklch(34.47% 0.154 309.8)
XYZxyz(6.7035, 3.4199, 16.5233)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511273 #347312
analogous
#201273 #511273 #731264
triadic
#511273 #735112 #127351
tetradic
#511273 #732012 #347312 #126473
square
#511273 #732012 #347312 #126473
split-complementary
#511273 #647312 #127320
monochromatic
#13041A #2C0A3E #511273 #761AA8 #9B23DD

Accessibility & contrast

On white

12.47
#511273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#511273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511273
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511273#FFFFFF#000000##FFFFFF
##5112731.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#003571
Tritanopia (blue-blind)
#4C2B43
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #511273;
/* rgb */ color: rgb(81, 18, 115);
/* oklch */ color: oklch(34.5% 0.154 309.8);
Tailwind
colors: {
  custom: {
    50: '#86599c',
    500: '#511273',
    950: '#000000',
  },
}
SCSS
$custom: #511273;
$custom-light: #86599c;
$custom-dark: #000000;
JSON
{
  "hex": "#511273",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 278.969,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34474,
    "c": 0.15427,
    "h": 309.8
  },
  "luminance": 0.0342
}

Semantic roles & 50–950 ramp

primary
#511273
secondary
#5FAA37
accent
#F03878
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511273

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

Preview Lab → · Contrast checker → · Palette generator →

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