#BA5174#BA5174

#BA5174 is a mid, vivid pink. Relative luminance 0.176; OKLCH L 57.8% C 0.140 H 1.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#BA5174
RGBrgb(186, 81, 116)
HSLhsl(340, 43%, 52%)
HSVhsv(340, 56%, 73%)
CMYKcmyk(0%, 56.5%, 37.6%, 27.1%)
CIE-LABlab(48.99, 45.87, 1.23)
CIE-LCHlch(48.99, 45.89, 1.53°)
OKLaboklab(57.84% 0.1397 0.0038)
OKLCHoklch(57.84% 0.14 1.5)
XYZxyz(26.3460, 17.5877, 18.5269)
Luminance0.1759 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5174 #51BA97
analogous
#BA51A9 #BA5174 #BA6351
triadic
#BA5174 #74BA51 #5174BA
tetradic
#BA5174 #A9BA51 #51BA97 #6351BA
square
#BA5174 #A9BA51 #51BA97 #6351BA
split-complementary
#BA5174 #51BA63 #51A9BA
monochromatic
#68293E #933A58 #BA5174 #CB7D97 #DDA9BA

Accessibility & contrast

On white

4.65
#BA5174 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#BA5174 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA5174
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5174#FFFFFF#000000##FFFFFF
##BA51741.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#636875
Deuteranopia (green-blind)
#7F7C72
Tritanopia (blue-blind)
#C8475E
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba5174;
/* rgb */ color: rgb(186, 81, 116);
/* oklch */ color: oklch(57.8% 0.140 1.5);
Tailwind
colors: {
  custom: {
    50: '#d2869b',
    500: '#ba5174',
    950: '#000000',
  },
}
SCSS
$custom: #ba5174;
$custom-light: #d2869b;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5174",
  "rgb": {
    "r": 186,
    "g": 81,
    "b": 116
  },
  "hsl": {
    "h": 340,
    "s": 43.21,
    "l": 52.353
  },
  "oklch": {
    "l": 0.57837,
    "c": 0.13979,
    "h": 1.5
  },
  "luminance": 0.17585
}

Semantic roles & 50–950 ramp

primary
#BA5174
secondary
#9DCABB
accent
#D3A955
background
#FDF8F9
surface
#FAF0F2
border
#D3CBCC
text
#150B0E
muted
#837C7E

Preview Lab

Preview with #BA5174

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

Preview Lab → · Contrast checker → · Palette generator →

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