#512652#512652

#512652 is a dark, moderate purple. Relative luminance 0.037; OKLCH L 34.6% C 0.091 H 326.5°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).

Color values

HEX#512652
RGBrgb(81, 38, 82)
HSLhsl(299, 37%, 24%)
HSVhsv(299, 54%, 32%)
CMYKcmyk(1.2%, 53.7%, 0%, 67.8%)
CIE-LABlab(22.81, 27.38, -18.26)
CIE-LCHlch(22.81, 32.91, 326.31°)
OKLaboklab(34.59% 0.0757 -0.0501)
OKLCHoklch(34.59% 0.091 326.5)
XYZxyz(5.6093, 3.7450, 8.4084)
Luminance0.0374 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512652 #275226
analogous
#3B2652 #512652 #52263D
triadic
#512652 #525126 #265251
tetradic
#512652 #523B26 #275226 #263D52
square
#512652 #523B26 #275226 #263D52
split-complementary
#512652 #3D5226 #26523B
monochromatic
#150A15 #281328 #512652 #7A397C #A44DA6

Accessibility & contrast

On white

12.01
#512652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#512652 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512652
12.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512652#FFFFFF#000000##FFFFFF
##5126521.0012.011.7512.01
#FFFFFF12.011.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223353
Deuteranopia (green-blind)
#2E3851
Tritanopia (blue-blind)
#532B38
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #512652;
/* rgb */ color: rgb(81, 38, 82);
/* oklch */ color: oklch(34.6% 0.091 326.5);
Tailwind
colors: {
  custom: {
    50: '#836283',
    500: '#512652',
    950: '#000000',
  },
}
SCSS
$custom: #512652;
$custom-light: #836283;
$custom-dark: #000000;
JSON
{
  "hex": "#512652",
  "rgb": {
    "r": 81,
    "g": 38,
    "b": 82
  },
  "hsl": {
    "h": 298.636,
    "s": 36.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.3459,
    "c": 0.09077,
    "h": 326.5
  },
  "luminance": 0.03745
}

Semantic roles & 50–950 ramp

primary
#512652
secondary
#50854F
accent
#CD5B5E
background
#F8F5F8
surface
#EFEAEF
border
#CAC6CA
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #512652

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

Preview Lab → · Contrast checker → · Palette generator →

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