#512657#512657

#512657 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.9% C 0.096 H 322.6°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#512657
RGBrgb(81, 38, 87)
HSLhsl(293, 39%, 25%)
HSVhsv(293, 56%, 34%)
CMYKcmyk(6.9%, 56.3%, 0%, 65.9%)
CIE-LABlab(23.08, 28.47, -21.16)
CIE-LCHlch(23.08, 35.48, 323.38°)
OKLaboklab(34.88% 0.0765 -0.0585)
OKLCHoklch(34.88% 0.096 322.6)
XYZxyz(5.8066, 3.8239, 9.4472)
Luminance0.0382 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512657 #2C5726
analogous
#392657 #512657 #572645
triadic
#512657 #575126 #265751
tetradic
#512657 #573926 #2C5726 #264557
square
#512657 #573926 #2C5726 #264557
split-complementary
#512657 #455726 #265739
monochromatic
#140915 #29132C #512657 #793982 #A04BAC

Accessibility & contrast

On white

11.90
#512657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512657
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512657#FFFFFF#000000##FFFFFF
##5126571.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #512657;
/* rgb */ color: rgb(81, 38, 87);
/* oklch */ color: oklch(34.9% 0.096 322.6);
Tailwind
colors: {
  custom: {
    50: '#836286',
    500: '#512657',
    950: '#000000',
  },
}
SCSS
$custom: #512657;
$custom-light: #836286;
$custom-dark: #000000;
JSON
{
  "hex": "#512657",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 87
  },
  "hsl": {
    "h": 292.653,
    "s": 39.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.34878,
    "c": 0.09629,
    "h": 322.6
  },
  "luminance": 0.03824
}

Semantic roles & 50–950 ramp

primary
#512657
secondary
#568A4F
accent
#CF5967
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050B
muted
#7C797C

Preview Lab

Preview with #512657

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

Preview Lab → · Contrast checker → · Palette generator →

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