<!--
{
  "availability" : [
    "MapKit JS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKitJS",
  "identifier" : "/documentation/MapKitJS/MarkerAnnotation/color",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "MapKit JS"
    ],
    "preciseIdentifier" : "instp/mapkit.MarkerAnnotation/color"
  },
  "title" : "color"
}
-->

# color

The background color of the balloon.

```
get color(): string;
set color(value: string);
```

## Discussion

This property accepts either a color name, such as `"rebeccapurple"`, or a hexadecimal color value, such as `"#663399"` (here, the equivalent of the named color). For more information about standardized colors, see the CSS working group’s list of [common color names and values](https://drafts.csswg.org/css-color/#named-colors). The default value is `"#ff5b40"` (a shade of red).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)