#BA4E9F#BA4E9F

#BA4E9F is a mid, vivid pink. Relative luminance 0.184; OKLCH L 59.1% C 0.168 H 338.4°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#BA4E9F
RGBrgb(186, 78, 159)
HSLhsl(315, 44%, 52%)
HSVhsv(315, 58%, 73%)
CMYKcmyk(0%, 58.1%, 14.5%, 27.1%)
CIE-LABlab(49.97, 53.15, -23.01)
CIE-LCHlch(49.97, 57.92, 336.59°)
OKLaboklab(59.06% 0.1563 -0.062)
OKLCHoklch(59.06% 0.168 338.4)
XYZxyz(29.2325, 18.3934, 34.8048)
Luminance0.1839 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E9F #4EBA69
analogous
#9F4EBA #BA4E9F #BA4E69
triadic
#BA4E9F #9FBA4E #4E9FBA
tetradic
#BA4E9F #BA9F4E #4EBA69 #4E69BA
square
#BA4E9F #BA9F4E #4EBA69 #4E69BA
split-complementary
#BA4E9F #69BA4E #4EBA9F
monochromatic
#662856 #92397C #BA4E9F #CB7AB7 #DCA6CF

Accessibility & contrast

On white

4.49
#BA4E9F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#BA4E9F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4E9F
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E9F#FFFFFF#000000##000000
##BA4E9F1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#526CA2
Deuteranopia (green-blind)
#727D9C
Tritanopia (blue-blind)
#C3526F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4e9f;
/* rgb */ color: rgb(186, 78, 159);
/* oklch */ color: oklch(59.1% 0.168 338.4);
Tailwind
colors: {
  custom: {
    50: '#d185bb',
    500: '#ba4e9f',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e9f;
$custom-light: #d185bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e9f",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 159
  },
  "hsl": {
    "h": 315,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.59058,
    "c": 0.16819,
    "h": 338.4
  },
  "luminance": 0.18391
}

Semantic roles & 50–950 ramp

primary
#BA4E9F
secondary
#9ACAA6
accent
#D47454
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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