#BA4E9C#BA4E9C

#BA4E9C is a mid, vivid pink. Relative luminance 0.183; OKLCH L 58.9% C 0.166 H 339.7°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA4E9C
RGBrgb(186, 78, 156)
HSLhsl(317, 44%, 52%)
HSVhsv(317, 58%, 73%)
CMYKcmyk(0%, 58.1%, 16.1%, 27.1%)
CIE-LABlab(49.85, 52.69, -21.42)
CIE-LCHlch(49.85, 56.88, 337.87°)
OKLaboklab(58.93% 0.1557 -0.0576)
OKLCHoklch(58.93% 0.166 339.7)
XYZxyz(28.9753, 18.2906, 33.4504)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4E9C #4EBA6C
analogous
#A24EBA #BA4E9C #BA4E66
triadic
#BA4E9C #9CBA4E #4E9CBA
tetradic
#BA4E9C #BAA24E #4EBA6C #4E66BA
square
#BA4E9C #BAA24E #4EBA6C #4E66BA
split-complementary
#BA4E9C #66BA4E #4EBAA2
monochromatic
#662855 #923979 #BA4E9C #CB7AB5 #DCA6CD

Accessibility & contrast

On white

4.51
#BA4E9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#BA4E9C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4E9C
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4E9C#FFFFFF#000000##000000
##BA4E9C1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#536C9E
Deuteranopia (green-blind)
#737D99
Tritanopia (blue-blind)
#C4516E
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4e9c;
/* rgb */ color: rgb(186, 78, 156);
/* oklch */ color: oklch(58.9% 0.166 339.7);
Tailwind
colors: {
  custom: {
    50: '#d185b9',
    500: '#ba4e9c',
    950: '#000000',
  },
}
SCSS
$custom: #ba4e9c;
$custom-light: #d185b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4e9c",
  "rgb": {
    "r": 186,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 316.667,
    "s": 43.902,
    "l": 51.765
  },
  "oklch": {
    "l": 0.58927,
    "c": 0.16602,
    "h": 339.7
  },
  "luminance": 0.18288
}

Semantic roles & 50–950 ramp

primary
#BA4E9C
secondary
#9ACAA7
accent
#D47854
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B11
muted
#837C80

Preview Lab

Preview with #BA4E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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