#511272#511272

#511272 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.153 H 310.2°. Best body text is #FFFFFF at 12.50:1 contrast (WCAG AA passes).

Color values

HEX#511272
RGBrgb(81, 18, 114)
HSLhsl(279, 73%, 26%)
HSVhsv(279, 84%, 45%)
CMYKcmyk(28.9%, 84.2%, 0%, 55.3%)
CIE-LABlab(21.57, 44.06, -41.25)
CIE-LCHlch(21.57, 60.36, 316.88°)
OKLaboklab(34.39% 0.0989 -0.1171)
OKLCHoklch(34.39% 0.153 310.2)
XYZxyz(6.6463, 3.3970, 16.2219)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511272 #337212
analogous
#211272 #511272 #721263
triadic
#511272 #725112 #127251
tetradic
#511272 #722112 #337212 #126372
square
#511272 #722112 #337212 #126372
split-complementary
#511272 #637212 #127221
monochromatic
#13041A #2B0A3D #511272 #771AA7 #9C23DC

Accessibility & contrast

On white

12.50
#511272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511272
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511272#FFFFFF#000000##FFFFFF
##5112721.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #511272;
/* rgb */ color: rgb(81, 18, 114);
/* oklch */ color: oklch(34.4% 0.153 310.2);
Tailwind
colors: {
  custom: {
    50: '#86599b',
    500: '#511272',
    950: '#000000',
  },
}
SCSS
$custom: #511272;
$custom-light: #86599b;
$custom-dark: #000000;
JSON
{
  "hex": "#511272",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 279.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34389,
    "c": 0.15329,
    "h": 310.2
  },
  "luminance": 0.03397
}

Semantic roles & 50–950 ramp

primary
#511272
secondary
#5EA937
accent
#EF3877
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511272

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

Preview Lab → · Contrast checker → · Palette generator →

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