#BA7EAD#BA7EAD

#BA7EAD is a light, moderate pink. Relative luminance 0.284; OKLCH L 66.9% C 0.097 H 334.7°. Best body text is #000000 at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#BA7EAD
RGBrgb(186, 126, 173)
HSLhsl(313, 30%, 61%)
HSVhsv(313, 32%, 73%)
CMYKcmyk(0%, 32.3%, 7%, 27.1%)
CIE-LABlab(60.23, 30.67, -15.47)
CIE-LCHlch(60.23, 34.35, 333.23°)
OKLaboklab(66.93% 0.0877 -0.0414)
OKLCHoklch(66.93% 0.097 334.7)
XYZxyz(35.2530, 28.3795, 43.1479)
Luminance0.2838 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EAD #7EBA8B
analogous
#A97EBA #BA7EAD #BA7E8F
triadic
#BA7EAD #ADBA7E #7EADBA
tetradic
#BA7EAD #BAA97E #7EBA8B #7E8FBA
square
#BA7EAD #BAA97E #7EBA8B #7E8FBA
split-complementary
#BA7EAD #8FBA7E #7EBAA9
monochromatic
#7C426F #A35793 #BA7EAD #CFA6C6 #E5CEE0

Accessibility & contrast

On white

3.15
#BA7EAD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.68
#BA7EAD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7EAD
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EAD#FFFFFF#000000##000000
##BA7EAD1.003.156.686.68
#FFFFFF3.151.0021.0021.00
#0000006.6821.001.001.00
##0000006.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7E8CAF
Deuteranopia (green-blind)
#8D94AB
Tritanopia (blue-blind)
#C0808F
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba7ead;
/* rgb */ color: rgb(186, 126, 173);
/* oklch */ color: oklch(66.9% 0.097 334.7);
Tailwind
colors: {
  custom: {
    50: '#cfa4c5',
    500: '#ba7ead',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ead;
$custom-light: #cfa4c5;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ead",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 173
  },
  "hsl": {
    "h": 313,
    "s": 30.303,
    "l": 61.176
  },
  "oklch": {
    "l": 0.66925,
    "c": 0.09702,
    "h": 334.7
  },
  "luminance": 0.28378
}

Semantic roles & 50–950 ramp

primary
#BA7EAD
secondary
#BFD5C4
accent
#A9543D
background
#FCFAFC
surface
#F9F4F8
border
#D2CED1
text
#140F13
muted
#827F82

Preview Lab

Preview with #BA7EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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