#BA4F7E#BA4F7E

#BA4F7E is a mid, vivid pink. Relative luminance 0.175; OKLCH L 57.9% C 0.147 H 355.2°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#BA4F7E
RGBrgb(186, 79, 126)
HSLhsl(334, 44%, 52%)
HSVhsv(334, 58%, 73%)
CMYKcmyk(0%, 57.5%, 32.3%, 27.1%)
CIE-LABlab(48.93, 48.04, -4.88)
CIE-LCHlch(48.93, 48.28, 354.19°)
OKLaboklab(57.89% 0.1461 -0.0123)
OKLCHoklch(57.89% 0.147 355.2)
XYZxyz(26.8129, 17.5401, 21.7081)
Luminance0.1754 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4F7E #4FBA8B
analogous
#BA4FB3 #BA4F7E #BA564F
triadic
#BA4F7E #7EBA4F #4F7EBA
tetradic
#BA4F7E #B3BA4F #4FBA8B #564FBA
square
#BA4F7E #B3BA4F #4FBA8B #564FBA
split-complementary
#BA4F7E #4FBA56 #4FB3BA
monochromatic
#662844 #923960 #BA4F7E #CB7B9E #DCA7BE

Accessibility & contrast

On white

4.66
#BA4F7E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#BA4F7E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #BA4F7E
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4F7E#FFFFFF#000000##FFFFFF
##BA4F7E1.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5F687F
Deuteranopia (green-blind)
#7C7C7B
Tritanopia (blue-blind)
#C74861
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #ba4f7e;
/* rgb */ color: rgb(186, 79, 126);
/* oklch */ color: oklch(57.9% 0.147 355.2);
Tailwind
colors: {
  custom: {
    50: '#d285a3',
    500: '#ba4f7e',
    950: '#000000',
  },
}
SCSS
$custom: #ba4f7e;
$custom-light: #d285a3;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4f7e",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 126
  },
  "hsl": {
    "h": 333.645,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.57893,
    "c": 0.14664,
    "h": 355.2
  },
  "luminance": 0.17537
}

Semantic roles & 50–950 ramp

primary
#BA4F7E
secondary
#9BCAB5
accent
#D39C54
background
#FDF8FA
surface
#FAF0F3
border
#D3CBCD
text
#140B0F
muted
#837C7F

Preview Lab

Preview with #BA4F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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