#BA7EA2#BA7EA2

#BA7EA2 is a light, moderate pink. Relative luminance 0.280; OKLCH L 66.5% C 0.088 H 343.0°. Best body text is #000000 at 6.59:1 contrast (WCAG AA passes).

Color values

HEX#BA7EA2
RGBrgb(186, 126, 162)
HSLhsl(324, 30%, 61%)
HSVhsv(324, 32%, 73%)
CMYKcmyk(0%, 32.3%, 12.9%, 27.1%)
CIE-LABlab(59.86, 28.75, -9.73)
CIE-LCHlch(59.86, 30.35, 341.30°)
OKLaboklab(66.52% 0.0842 -0.0257)
OKLCHoklch(66.52% 0.088 343)
XYZxyz(34.2322, 27.9711, 37.7713)
Luminance0.2797 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EA2 #7EBA96
analogous
#B47EBA #BA7EA2 #BA7E84
triadic
#BA7EA2 #A2BA7E #7EA2BA
tetradic
#BA7EA2 #BAB47E #7EBA96 #7E84BA
square
#BA7EA2 #BAB47E #7EBA96 #7E84BA
split-complementary
#BA7EA2 #84BA7E #7EBAB4
monochromatic
#7C4265 #A35785 #BA7EA2 #CFA6BF #E5CEDB

Accessibility & contrast

On white

3.18
#BA7EA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.59
#BA7EA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7EA2
6.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EA2#FFFFFF#000000##000000
##BA7EA21.003.186.596.59
#FFFFFF3.181.0021.0021.00
#0000006.5921.001.001.00
##0000006.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#818AA3
Deuteranopia (green-blind)
#9094A0
Tritanopia (blue-blind)
#C17E8B
Achromatopsia (no color)
#909090

Design tokens & code

CSS
--color: #ba7ea2;
/* rgb */ color: rgb(186, 126, 162);
/* oklch */ color: oklch(66.5% 0.088 343.0);
Tailwind
colors: {
  custom: {
    50: '#cfa4bd',
    500: '#ba7ea2',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ea2;
$custom-light: #cfa4bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ea2",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 162
  },
  "hsl": {
    "h": 324,
    "s": 30.303,
    "l": 61.176
  },
  "oklch": {
    "l": 0.66523,
    "c": 0.08802,
    "h": 343
  },
  "luminance": 0.27969
}

Semantic roles & 50–950 ramp

primary
#BA7EA2
secondary
#BFD5C8
accent
#A9683D
background
#FCFAFB
surface
#F9F4F6
border
#D2CED0
text
#140F12
muted
#827F81

Preview Lab

Preview with #BA7EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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