#512751#512751

#512751 is a dark, moderate purple. Relative luminance 0.038; OKLCH L 34.7% C 0.088 H 327.3°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).

Color values

HEX#512751
RGBrgb(81, 39, 81)
HSLhsl(300, 35%, 24%)
HSVhsv(300, 52%, 32%)
CMYKcmyk(0%, 51.9%, 0%, 68.2%)
CIE-LABlab(22.98, 26.59, -17.32)
CIE-LCHlch(22.98, 31.73, 326.92°)
OKLaboklab(34.7% 0.0738 -0.0475)
OKLCHoklch(34.7% 0.088 327.3)
XYZxyz(5.6040, 3.7947, 8.2203)
Luminance0.0379 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512751 #275127
analogous
#3C2751 #512751 #51273C
triadic
#512751 #515127 #275151
tetradic
#512751 #513C27 #275127 #273C51
square
#512751 #513C27 #275127 #273C51
split-complementary
#512751 #3C5127 #27513C
monochromatic
#150A15 #281328 #512751 #7A3B7A #A44FA4

Accessibility & contrast

On white

11.94
#512751 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #512751
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512751#FFFFFF#000000##FFFFFF
##5127511.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233352
Deuteranopia (green-blind)
#2F3950
Tritanopia (blue-blind)
#532B38
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #512751;
/* rgb */ color: rgb(81, 39, 81);
/* oklch */ color: oklch(34.7% 0.088 327.3);
Tailwind
colors: {
  custom: {
    50: '#836382',
    500: '#512751',
    950: '#000000',
  },
}
SCSS
$custom: #512751;
$custom-light: #836382;
$custom-dark: #000000;
JSON
{
  "hex": "#512751",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 81
  },
  "hsl": {
    "h": 300,
    "s": 35,
    "l": 23.529
  },
  "oklch": {
    "l": 0.347,
    "c": 0.08777,
    "h": 327.3
  },
  "luminance": 0.03794
}

Semantic roles & 50–950 ramp

primary
#512751
secondary
#508450
accent
#CB5D5D
background
#F8F5F7
surface
#EFEAEE
border
#CAC6C9
text
#0B050A
muted
#7C797C

Preview Lab

Preview with #512751

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

Preview Lab → · Contrast checker → · Palette generator →

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