#815172#815172

#815172 is a mid, moderate pink. Relative luminance 0.118; OKLCH L 50.0% C 0.079 H 339.2°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#815172
RGBrgb(129, 81, 114)
HSLhsl(319, 23%, 41%)
HSVhsv(319, 37%, 51%)
CMYKcmyk(0%, 37.2%, 11.6%, 49.4%)
CIE-LABlab(40.84, 25.38, -10.52)
CIE-LCHlch(40.84, 27.47, 337.49°)
OKLaboklab(50.01% 0.0738 -0.028)
OKLCHoklch(50.01% 0.079 339.2)
XYZxyz(15.0329, 11.7677, 17.3959)
Luminance0.1177 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#815172 #518160
analogous
#785181 #815172 #81515A
triadic
#815172 #728151 #517281
tetradic
#815172 #817851 #518160 #515A81
square
#815172 #817851 #518160 #515A81
split-complementary
#815172 #5A8151 #518178
monochromatic
#362230 #5B3951 #815172 #A36C92 #BA92AE

Accessibility & contrast

On white

6.26
#815172 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#815172 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #815172
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##815172#FFFFFF#000000##FFFFFF
##8151721.006.263.356.26
#FFFFFF6.261.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#535C73
Deuteranopia (green-blind)
#5E6371
Tritanopia (blue-blind)
#86525D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #815172;
/* rgb */ color: rgb(129, 81, 114);
/* oklch */ color: oklch(50.0% 0.079 339.2);
Tailwind
colors: {
  custom: {
    50: '#a6839a',
    500: '#815172',
    950: '#000000',
  },
}
SCSS
$custom: #815172;
$custom-light: #a6839a;
$custom-dark: #000000;
JSON
{
  "hex": "#815172",
  "rgb": {
    "r": 129,
    "g": 81,
    "b": 114
  },
  "hsl": {
    "h": 318.75,
    "s": 22.857,
    "l": 41.176
  },
  "oklch": {
    "l": 0.50007,
    "c": 0.07895,
    "h": 339.2
  },
  "luminance": 0.11767
}

Semantic roles & 50–950 ramp

primary
#815172
secondary
#86A891
accent
#BF8468
background
#FAF8F9
surface
#F4EFF2
border
#CECACC
text
#0F0A0E
muted
#7F7C7E

Preview Lab

Preview with #815172

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

Preview Lab → · Contrast checker → · Palette generator →

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