#511255#511255

#511255 is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.2% C 0.126 H 325.4°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#511255
RGBrgb(81, 18, 85)
HSLhsl(296, 65%, 20%)
HSVhsv(296, 79%, 33%)
CMYKcmyk(4.7%, 78.8%, 0%, 66.7%)
CIE-LABlab(19.38, 37.89, -25.67)
CIE-LCHlch(19.38, 45.77, 325.88°)
OKLaboklab(32.15% 0.1035 -0.0714)
OKLCHoklch(32.15% 0.126 325.4)
XYZxyz(5.2492, 2.8382, 8.8639)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#511255 #165512
analogous
#2F1255 #511255 #551237
triadic
#511255 #555112 #125551
tetradic
#511255 #552F12 #165512 #123755
square
#511255 #552F12 #165512 #123755
split-complementary
#511255 #375512 #12552F
monochromatic
#180519 #210722 #511255 #811D88 #B127BA

Accessibility & contrast

On white

13.40
#511255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #511255
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##511255#FFFFFF#000000##FFFFFF
##5112551.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012A57
Deuteranopia (green-blind)
#203253
Tritanopia (blue-blind)
#531D32
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #511255;
/* rgb */ color: rgb(81, 18, 85);
/* oklch */ color: oklch(32.2% 0.126 325.4);
Tailwind
colors: {
  custom: {
    50: '#855785',
    500: '#511255',
    950: '#000000',
  },
}
SCSS
$custom: #511255;
$custom-light: #855785;
$custom-dark: #000000;
JSON
{
  "hex": "#511255",
  "rgb": {
    "r": 81,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 296.418,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.32154,
    "c": 0.12576,
    "h": 325.4
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#511255
secondary
#3A8E35
accent
#E8404A
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B030B
muted
#7C787C

Preview Lab

Preview with #511255

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

Preview Lab → · Contrast checker → · Palette generator →

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