#512F4E#512F4E

#512F4E is a dark, moderate purple. Relative luminance 0.043; OKLCH L 36.0% C 0.068 H 330.1°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).

Color values

HEX#512F4E
RGBrgb(81, 47, 78)
HSLhsl(305, 27%, 25%)
HSVhsv(305, 42%, 32%)
CMYKcmyk(0%, 42%, 3.7%, 68.2%)
CIE-LABlab(24.74, 21.07, -12.60)
CIE-LCHlch(24.74, 24.54, 329.12°)
OKLaboklab(35.97% 0.0593 -0.0341)
OKLCHoklch(35.97% 0.068 330.1)
XYZxyz(5.7849, 4.3327, 7.7378)
Luminance0.0433 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#512F4E #2F5132
analogous
#432F51 #512F4E #512F3D
triadic
#512F4E #4E512F #2F4E51
tetradic
#512F4E #51432F #2F5132 #2F3D51
square
#512F4E #51432F #2F5132 #2F3D51
split-complementary
#512F4E #3D512F #2F5143
monochromatic
#130B13 #2A1929 #512F4E #784573 #9E5C99

Accessibility & contrast

On white

11.25
#512F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#512F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #512F4E
11.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##512F4E#FFFFFF#000000##FFFFFF
##512F4E1.0011.251.8711.25
#FFFFFF11.251.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E384F
Deuteranopia (green-blind)
#363C4D
Tritanopia (blue-blind)
#53313B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #512f4e;
/* rgb */ color: rgb(81, 47, 78);
/* oklch */ color: oklch(36.0% 0.068 330.1);
Tailwind
colors: {
  custom: {
    50: '#83687f',
    500: '#512f4e',
    950: '#000000',
  },
}
SCSS
$custom: #512f4e;
$custom-light: #83687f;
$custom-dark: #000000;
JSON
{
  "hex": "#512f4e",
  "rgb": {
    "r": 81,
    "g": 47,
    "b": 78
  },
  "hsl": {
    "h": 305.294,
    "s": 26.562,
    "l": 25.098
  },
  "oklch": {
    "l": 0.35969,
    "c": 0.06844,
    "h": 330.1
  },
  "luminance": 0.04332
}

Semantic roles & 50–950 ramp

primary
#512F4E
secondary
#59825D
accent
#C36D65
background
#F8F6F7
surface
#EFEBEE
border
#CAC6C9
text
#0A060A
muted
#7C7A7C

Preview Lab

Preview with #512F4E

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

Preview Lab → · Contrast checker → · Palette generator →

#512F4E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva