#BA5F7F#BA5F7F

#BA5F7F is a mid, vivid pink. Relative luminance 0.202; OKLCH L 60.2% C 0.122 H 359.1°. Best body text is #000000 at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#BA5F7F
RGBrgb(186, 95, 127)
HSLhsl(339, 40%, 55%)
HSVhsv(339, 49%, 73%)
CMYKcmyk(0%, 48.9%, 31.7%, 27.1%)
CIE-LABlab(52.02, 40.21, -0.94)
CIE-LCHlch(52.02, 40.22, 358.66°)
OKLaboklab(60.21% 0.122 -0.0019)
OKLCHoklch(60.21% 0.122 359.1)
XYZxyz(28.1738, 20.1583, 22.4817)
Luminance0.2016 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5F7F #5FBA9A
analogous
#BA5FAD #BA5F7F #BA6C5F
triadic
#BA5F7F #7FBA5F #5F7FBA
tetradic
#BA5F7F #ADBA5F #5FBA9A #6C5FBA
square
#BA5F7F #ADBA5F #5FBA9A #6C5FBA
split-complementary
#BA5F7F #5FBA6C #5FADBA
monochromatic
#6F3046 #9A4261 #BA5F7F #CC8AA1 #DFB5C3

Accessibility & contrast

On white

4.17
#BA5F7F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.03
#BA5F7F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5F7F
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5F7F#FFFFFF#000000##000000
##BA5F7F1.004.175.035.03
#FFFFFF4.171.0021.0021.00
#0000005.0321.001.001.00
##0000005.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D7280
Deuteranopia (green-blind)
#84827D
Tritanopia (blue-blind)
#C7596B
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #ba5f7f;
/* rgb */ color: rgb(186, 95, 127);
/* oklch */ color: oklch(60.2% 0.122 359.1);
Tailwind
colors: {
  custom: {
    50: '#d18fa4',
    500: '#ba5f7f',
    950: '#000000',
  },
}
SCSS
$custom: #ba5f7f;
$custom-light: #d18fa4;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5f7f",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 127
  },
  "hsl": {
    "h": 338.901,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.60214,
    "c": 0.12199,
    "h": 359.1
  },
  "luminance": 0.20156
}

Semantic roles & 50–950 ramp

primary
#BA5F7F
secondary
#A7CDC0
accent
#D0A658
background
#FDF8FA
surface
#FAF0F3
border
#D3CBCD
text
#140C0F
muted
#837D7F

Preview Lab

Preview with #BA5F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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