#512256#512256

#512256 is a dark, moderate purple. Relative luminance 0.036; OKLCH L 34.2% C 0.102 H 323.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#512256
RGBrgb(81, 34, 86)
HSLhsl(294, 43%, 24%)
HSVhsv(294, 60%, 34%)
CMYKcmyk(5.8%, 60.5%, 0%, 66.3%)
CIE-LABlab(22.18, 30.51, -21.91)
CIE-LCHlch(22.18, 37.56, 324.31°)
OKLaboklab(34.2% 0.0826 -0.0606)
OKLCHoklch(34.2% 0.102 323.7)
XYZxyz(5.6449, 3.5656, 9.1932)
Luminance0.0357 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512256 #275622
analogous
#372256 #512256 #562241
triadic
#512256 #565122 #225651
tetradic
#512256 #563722 #275622 #224156
square
#512256 #563722 #275622 #224156
split-complementary
#512256 #415622 #225637
monochromatic
#150916 #28112A #512256 #7A3382 #A445AE

Accessibility & contrast

On white

12.26
#512256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#512256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512256
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512256#FFFFFF#000000##FFFFFF
##5122561.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3158
Deuteranopia (green-blind)
#2A3755
Tritanopia (blue-blind)
#532938
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #512256;
/* rgb */ color: rgb(81, 34, 86);
/* oklch */ color: oklch(34.2% 0.102 323.7);
Tailwind
colors: {
  custom: {
    50: '#846086',
    500: '#512256',
    950: '#000000',
  },
}
SCSS
$custom: #512256;
$custom-light: #846086;
$custom-dark: #000000;
JSON
{
  "hex": "#512256",
  "rgb": {
    "r": 81,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 294.231,
    "s": 43.333,
    "l": 23.529
  },
  "oklch": {
    "l": 0.34198,
    "c": 0.10244,
    "h": 323.7
  },
  "luminance": 0.03565
}

Semantic roles & 50–950 ramp

primary
#512256
secondary
#508A4A
accent
#D35561
background
#F8F5F8
surface
#EFE9EF
border
#CAC5CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #512256

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

Preview Lab → · Contrast checker → · Palette generator →

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