#511452#511452

#511452 is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.120 H 327.3°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#511452
RGBrgb(81, 20, 82)
HSLhsl(299, 61%, 20%)
HSVhsv(299, 76%, 32%)
CMYKcmyk(1.2%, 75.6%, 0%, 67.8%)
CIE-LABlab(19.47, 36.51, -23.51)
CIE-LCHlch(19.47, 43.43, 327.22°)
OKLaboklab(32.16% 0.1013 -0.0651)
OKLCHoklch(32.16% 0.12 327.3)
XYZxyz(5.1664, 2.8592, 8.2608)
Luminance0.0286 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511452 #155214
analogous
#321452 #511452 #521434
triadic
#511452 #525114 #145251
tetradic
#511452 #523214 #155214 #143452
square
#511452 #523214 #155214 #143452
split-complementary
#511452 #345214 #145232
monochromatic
#180619 #200821 #511452 #822083 #B22CB4

Accessibility & contrast

On white

13.36
#511452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#511452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #511452
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511452#FFFFFF#000000##FFFFFF
##5114521.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092A54
Deuteranopia (green-blind)
#233250
Tritanopia (blue-blind)
#541D31
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511452;
/* rgb */ color: rgb(81, 20, 82);
/* oklch */ color: oklch(32.2% 0.120 327.3);
Tailwind
colors: {
  custom: {
    50: '#845883',
    500: '#511452',
    950: '#000000',
  },
}
SCSS
$custom: #511452;
$custom-light: #845883;
$custom-dark: #000000;
JSON
{
  "hex": "#511452",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 299.032,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.32155,
    "c": 0.12044,
    "h": 327.3
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#511452
secondary
#398A38
accent
#E44446
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #511452

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

Preview Lab → · Contrast checker → · Palette generator →

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