#BA7EA8#BA7EA8

#BA7EA8 is a light, moderate pink. Relative luminance 0.282; OKLCH L 66.7% C 0.093 H 338.3°. Best body text is #000000 at 6.64:1 contrast (WCAG AA passes).

Color values

HEX#BA7EA8
RGBrgb(186, 126, 168)
HSLhsl(318, 30%, 61%)
HSVhsv(318, 32%, 73%)
CMYKcmyk(0%, 32.3%, 9.7%, 27.1%)
CIE-LABlab(60.06, 29.78, -12.87)
CIE-LCHlch(60.06, 32.44, 336.63°)
OKLaboklab(66.74% 0.0862 -0.0343)
OKLCHoklch(66.74% 0.093 338.3)
XYZxyz(34.7783, 28.1896, 40.6474)
Luminance0.2819 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA7EA8 #7EBA90
analogous
#AE7EBA #BA7EA8 #BA7E8A
triadic
#BA7EA8 #A8BA7E #7EA8BA
tetradic
#BA7EA8 #BAAE7E #7EBA90 #7E8ABA
square
#BA7EA8 #BAAE7E #7EBA90 #7E8ABA
split-complementary
#BA7EA8 #8ABA7E #7EBAAE
monochromatic
#7C426A #A3578D #BA7EA8 #CFA6C3 #E5CEDE

Accessibility & contrast

On white

3.16
#BA7EA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.64
#BA7EA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA7EA8
6.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA7EA8#FFFFFF#000000##000000
##BA7EA81.003.166.646.64
#FFFFFF3.161.0021.0021.00
#0000006.6421.001.001.00
##0000006.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#808BAA
Deuteranopia (green-blind)
#8E94A6
Tritanopia (blue-blind)
#C17F8D
Achromatopsia (no color)
#919191

Design tokens & code

CSS
--color: #ba7ea8;
/* rgb */ color: rgb(186, 126, 168);
/* oklch */ color: oklch(66.7% 0.093 338.3);
Tailwind
colors: {
  custom: {
    50: '#cfa4c1',
    500: '#ba7ea8',
    950: '#000000',
  },
}
SCSS
$custom: #ba7ea8;
$custom-light: #cfa4c1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba7ea8",
  "rgb": {
    "r": 186,
    "g": 126,
    "b": 168
  },
  "hsl": {
    "h": 318,
    "s": 30.303,
    "l": 61.176
  },
  "oklch": {
    "l": 0.66739,
    "c": 0.09273,
    "h": 338.3
  },
  "luminance": 0.28188
}

Semantic roles & 50–950 ramp

primary
#BA7EA8
secondary
#BFD5C5
accent
#A95D3D
background
#FCFAFB
surface
#F9F4F7
border
#D2CED0
text
#140F12
muted
#827F81

Preview Lab

Preview with #BA7EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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