#511252#511252

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

Color values

HEX#511252
RGBrgb(81, 18, 82)
HSLhsl(299, 64%, 20%)
HSVhsv(299, 78%, 32%)
CMYKcmyk(1.2%, 78%, 0%, 67.8%)
CIE-LABlab(19.19, 37.31, -23.96)
CIE-LCHlch(19.19, 44.34, 327.30°)
OKLaboklab(31.95% 0.1036 -0.0664)
OKLCHoklch(31.95% 0.123 327.3)
XYZxyz(5.1326, 2.7915, 8.2495)
Luminance0.0279 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511252 #135212
analogous
#311252 #511252 #521233
triadic
#511252 #525112 #125251
tetradic
#511252 #523112 #135212 #123352
square
#511252 #523112 #135212 #123352
split-complementary
#511252 #335212 #125231
monochromatic
#190619 #1F0720 #511252 #831D84 #B428B6

Accessibility & contrast

On white

13.48
#511252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511252
13.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511252#FFFFFF#000000##FFFFFF
##5112521.0013.481.5613.48
#FFFFFF13.481.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052954
Deuteranopia (green-blind)
#223150
Tritanopia (blue-blind)
#541C31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511252;
/* rgb */ color: rgb(81, 18, 82);
/* oklch */ color: oklch(32.0% 0.123 327.3);
Tailwind
colors: {
  custom: {
    50: '#845783',
    500: '#511252',
    950: '#000000',
  },
}
SCSS
$custom: #511252;
$custom-light: #845783;
$custom-dark: #000000;
JSON
{
  "hex": "#511252",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 299.063,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.31952,
    "c": 0.12304,
    "h": 327.3
  },
  "luminance": 0.02791
}

Semantic roles & 50–950 ramp

primary
#511252
secondary
#368B35
accent
#E74143
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030A
muted
#7C787C

Preview Lab

Preview with #511252

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

Preview Lab → · Contrast checker → · Palette generator →

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