#512656#512656

#512656 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.8% C 0.095 H 323.3°. Best body text is #FFFFFF at 11.92:1 contrast (WCAG AA passes).

Color values

HEX#512656
RGBrgb(81, 38, 86)
HSLhsl(294, 39%, 24%)
HSVhsv(294, 56%, 34%)
CMYKcmyk(5.8%, 55.8%, 0%, 66.3%)
CIE-LABlab(23.03, 28.25, -20.58)
CIE-LCHlch(23.03, 34.95, 323.92°)
OKLaboklab(34.82% 0.0763 -0.0568)
OKLCHoklch(34.82% 0.095 323.3)
XYZxyz(5.7660, 3.8077, 9.2335)
Luminance0.0381 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512656 #2B5626
analogous
#392656 #512656 #562643
triadic
#512656 #565126 #265651
tetradic
#512656 #563926 #2B5626 #264356
square
#512656 #563926 #2B5626 #264356
split-complementary
#512656 #435626 #265639
monochromatic
#140915 #29132C #512656 #793980 #A14CAB

Accessibility & contrast

On white

11.92
#512656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#512656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512656
11.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512656#FFFFFF#000000##FFFFFF
##5126561.0011.921.7611.92
#FFFFFF11.921.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F3458
Deuteranopia (green-blind)
#2C3955
Tritanopia (blue-blind)
#522C3A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512656;
/* rgb */ color: rgb(81, 38, 86);
/* oklch */ color: oklch(34.8% 0.095 323.3);
Tailwind
colors: {
  custom: {
    50: '#836286',
    500: '#512656',
    950: '#000000',
  },
}
SCSS
$custom: #512656;
$custom-light: #836286;
$custom-dark: #000000;
JSON
{
  "hex": "#512656",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 86
  },
  "hsl": {
    "h": 293.75,
    "s": 38.71,
    "l": 24.314
  },
  "oklch": {
    "l": 0.34819,
    "c": 0.09518,
    "h": 323.3
  },
  "luminance": 0.03807
}

Semantic roles & 50–950 ramp

primary
#512656
secondary
#55894F
accent
#CF5965
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #512656

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

Preview Lab → · Contrast checker → · Palette generator →

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