#511253#511253

#511253 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.124 H 326.7°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#511253
RGBrgb(81, 18, 83)
HSLhsl(298, 64%, 20%)
HSVhsv(298, 78%, 33%)
CMYKcmyk(2.4%, 78.3%, 0%, 67.5%)
CIE-LABlab(19.25, 37.51, -24.53)
CIE-LCHlch(19.25, 44.82, 326.81°)
OKLaboklab(32.02% 0.1036 -0.0681)
OKLCHoklch(32.02% 0.124 326.7)
XYZxyz(5.1709, 2.8068, 8.4514)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511253 #145312
analogous
#311253 #511253 #531235
triadic
#511253 #535112 #125351
tetradic
#511253 #533112 #145312 #123553
square
#511253 #533112 #145312 #123553
split-complementary
#511253 #355312 #125331
monochromatic
#190519 #200721 #511253 #821D85 #B328B8

Accessibility & contrast

On white

13.45
#511253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#511253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511253
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511253#FFFFFF#000000##FFFFFF
##5112531.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042A55
Deuteranopia (green-blind)
#223151
Tritanopia (blue-blind)
#531C31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511253;
/* rgb */ color: rgb(81, 18, 83);
/* oklch */ color: oklch(32.0% 0.124 326.7);
Tailwind
colors: {
  custom: {
    50: '#845784',
    500: '#511253',
    950: '#000000',
  },
}
SCSS
$custom: #511253;
$custom-light: #845784;
$custom-dark: #000000;
JSON
{
  "hex": "#511253",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 298.154,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.32019,
    "c": 0.12394,
    "h": 326.7
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#511253
secondary
#388C35
accent
#E74046
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #511253

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

Preview Lab → · Contrast checker → · Palette generator →

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