#511269#511269

#511269 is a dark, vivid purple. Relative luminance 0.032; OKLCH L 33.6% C 0.145 H 314.3°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#511269
RGBrgb(81, 18, 105)
HSLhsl(283, 71%, 24%)
HSVhsv(283, 83%, 41%)
CMYKcmyk(22.9%, 82.9%, 0%, 58.8%)
CIE-LABlab(20.84, 42.05, -36.60)
CIE-LCHlch(20.84, 55.75, 318.97°)
OKLaboklab(33.65% 0.101 -0.1034)
OKLCHoklch(33.65% 0.145 314.3)
XYZxyz(6.1590, 3.2021, 13.6555)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511269 #2A6912
analogous
#261269 #511269 #691256
triadic
#511269 #695112 #126951
tetradic
#511269 #692612 #2A6912 #125669
square
#511269 #692612 #2A6912 #125669
split-complementary
#511269 #566912 #126926
monochromatic
#14041A #290935 #511269 #791B9D #A224D1

Accessibility & contrast

On white

12.80
#511269 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#511269 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511269
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511269#FFFFFF#000000##FFFFFF
##5112691.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6B
Deuteranopia (green-blind)
#0B3467
Tritanopia (blue-blind)
#4F273E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #511269;
/* rgb */ color: rgb(81, 18, 105);
/* oklch */ color: oklch(33.6% 0.145 314.3);
Tailwind
colors: {
  custom: {
    50: '#855994',
    500: '#511269',
    950: '#000000',
  },
}
SCSS
$custom: #511269;
$custom-light: #855994;
$custom-dark: #000000;
JSON
{
  "hex": "#511269",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 105
  },
  "hsl": {
    "h": 283.448,
    "s": 70.732,
    "l": 24.118
  },
  "oklch": {
    "l": 0.33646,
    "c": 0.14458,
    "h": 314.3
  },
  "luminance": 0.03202
}

Semantic roles & 50–950 ramp

primary
#511269
secondary
#54A136
accent
#ED3A6C
background
#F8F5F9
surface
#F0E9F1
border
#CBC5CB
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #511269

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

Preview Lab → · Contrast checker → · Palette generator →

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