#BA5FA8#BA5FA8

#BA5FA8 is a mid, vivid pink. Relative luminance 0.215; OKLCH L 61.8% C 0.148 H 335.2°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#BA5FA8
RGBrgb(186, 95, 168)
HSLhsl(312, 40%, 55%)
HSVhsv(312, 49%, 73%)
CMYKcmyk(0%, 48.9%, 9.7%, 27.1%)
CIE-LABlab(53.44, 46.37, -22.94)
CIE-LCHlch(53.44, 51.73, 333.67°)
OKLaboklab(61.75% 0.1341 -0.062)
OKLCHoklch(61.75% 0.148 335.2)
XYZxyz(31.4098, 21.4527, 39.5246)
Luminance0.2145 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FA8 #5FBA71
analogous
#9E5FBA #BA5FA8 #BA5F7B
triadic
#BA5FA8 #A8BA5F #5FA8BA
tetradic
#BA5FA8 #BA9E5F #5FBA71 #5F7BBA
square
#BA5FA8 #BA9E5F #5FBA71 #5F7BBA
split-complementary
#BA5FA8 #7BBA5F #5FBA9E
monochromatic
#6F3062 #9A4288 #BA5FA8 #CC8ABF #DFB5D7

Accessibility & contrast

On white

3.97
#BA5FA8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#BA5FA8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FA8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FA8#FFFFFF#000000##000000
##BA5FA81.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F77AA
Deuteranopia (green-blind)
#7985A5
Tritanopia (blue-blind)
#C2637C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #ba5fa8;
/* rgb */ color: rgb(186, 95, 168);
/* oklch */ color: oklch(61.8% 0.148 335.2);
Tailwind
colors: {
  custom: {
    50: '#d18fc2',
    500: '#ba5fa8',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fa8;
$custom-light: #d18fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fa8",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 168
  },
  "hsl": {
    "h": 311.868,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.61751,
    "c": 0.14772,
    "h": 335.2
  },
  "luminance": 0.21451
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA5FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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