#511270#511270

#511270 is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.151 H 311.1°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#511270
RGBrgb(81, 18, 112)
HSLhsl(280, 72%, 25%)
HSVhsv(280, 84%, 44%)
CMYKcmyk(27.7%, 83.9%, 0%, 56.1%)
CIE-LABlab(21.40, 43.61, -40.23)
CIE-LCHlch(21.40, 59.33, 317.31°)
OKLaboklab(34.22% 0.0995 -0.1141)
OKLCHoklch(34.22% 0.151 311.1)
XYZxyz(6.5337, 3.3520, 15.6289)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511270 #317012
analogous
#221270 #511270 #701260
triadic
#511270 #705112 #127051
tetradic
#511270 #702212 #317012 #126070
square
#511270 #702212 #317012 #126070
split-complementary
#511270 #607012 #127022
monochromatic
#13041A #2B0A3B #511270 #771AA5 #9D23D9

Accessibility & contrast

On white

12.57
#511270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#511270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511270
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511270#FFFFFF#000000##FFFFFF
##5112701.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00346E
Tritanopia (blue-blind)
#4D2A42
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #511270;
/* rgb */ color: rgb(81, 18, 112);
/* oklch */ color: oklch(34.2% 0.151 311.1);
Tailwind
colors: {
  custom: {
    50: '#86599a',
    500: '#511270',
    950: '#000000',
  },
}
SCSS
$custom: #511270;
$custom-light: #86599a;
$custom-dark: #000000;
JSON
{
  "hex": "#511270",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 280.213,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3422,
    "c": 0.15135,
    "h": 311.1
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#511270
secondary
#5CA737
accent
#EF3975
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040E
muted
#7D797E

Preview Lab

Preview with #511270

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

Preview Lab → · Contrast checker → · Palette generator →

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