#BA5FA7#BA5FA7

#BA5FA7 is a mid, vivid pink. Relative luminance 0.214; OKLCH L 61.7% C 0.147 H 335.7°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#BA5FA7
RGBrgb(186, 95, 167)
HSLhsl(313, 40%, 55%)
HSVhsv(313, 49%, 73%)
CMYKcmyk(0%, 48.9%, 10.2%, 27.1%)
CIE-LABlab(53.40, 46.20, -22.42)
CIE-LCHlch(53.40, 51.35, 334.11°)
OKLaboklab(61.71% 0.1338 -0.0605)
OKLCHoklch(61.71% 0.147 335.7)
XYZxyz(31.3170, 21.4156, 39.0359)
Luminance0.2141 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FA7 #5FBA72
analogous
#9F5FBA #BA5FA7 #BA5F7A
triadic
#BA5FA7 #A7BA5F #5FA7BA
tetradic
#BA5FA7 #BA9F5F #5FBA72 #5F7ABA
square
#BA5FA7 #BA9F5F #5FBA72 #5F7ABA
split-complementary
#BA5FA7 #7ABA5F #5FBA9F
monochromatic
#6F3062 #9A4287 #BA5FA7 #CC8ABF #DFB5D6

Accessibility & contrast

On white

3.98
#BA5FA7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#BA5FA7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FA7
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FA7#FFFFFF#000000##000000
##BA5FA71.003.985.285.28
#FFFFFF3.981.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6077A9
Deuteranopia (green-blind)
#7985A4
Tritanopia (blue-blind)
#C2637B
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba5fa7;
/* rgb */ color: rgb(186, 95, 167);
/* oklch */ color: oklch(61.7% 0.147 335.7);
Tailwind
colors: {
  custom: {
    50: '#d18fc1',
    500: '#ba5fa7',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fa7;
$custom-light: #d18fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fa7",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 167
  },
  "hsl": {
    "h": 312.527,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61708,
    "c": 0.1469,
    "h": 335.7
  },
  "luminance": 0.21414
}

Semantic roles & 50–950 ramp

primary
#BA5FA7
secondary
#A7CDAF
accent
#D07158
background
#FDF9FB
surface
#FAF1F7
border
#D3CBD0
text
#140D12
muted
#837E81

Preview Lab

Preview with #BA5FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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