#BA5FA4#BA5FA4

#BA5FA4 is a mid, vivid pink. Relative luminance 0.213; OKLCH L 61.6% C 0.144 H 337.1°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA5FA4
RGBrgb(186, 95, 164)
HSLhsl(315, 40%, 55%)
HSVhsv(315, 49%, 73%)
CMYKcmyk(0%, 48.9%, 11.8%, 27.1%)
CIE-LABlab(53.28, 45.70, -20.85)
CIE-LCHlch(53.28, 50.23, 335.47°)
OKLaboklab(61.58% 0.1331 -0.0561)
OKLCHoklch(61.58% 0.144 337.1)
XYZxyz(31.0429, 21.3060, 37.5922)
Luminance0.2130 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA5FA4 #5FBA75
analogous
#A25FBA #BA5FA4 #BA5F77
triadic
#BA5FA4 #A4BA5F #5FA4BA
tetradic
#BA5FA4 #BAA25F #5FBA75 #5F77BA
square
#BA5FA4 #BAA25F #5FBA75 #5F77BA
split-complementary
#BA5FA4 #77BA5F #5FBAA2
monochromatic
#6F3060 #9A4284 #BA5FA4 #CC8ABC #DFB5D5

Accessibility & contrast

On white

3.99
#BA5FA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#BA5FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA5FA4
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA5FA4#FFFFFF#000000##000000
##BA5FA41.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6177A6
Deuteranopia (green-blind)
#7A84A1
Tritanopia (blue-blind)
#C2627A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #ba5fa4;
/* rgb */ color: rgb(186, 95, 164);
/* oklch */ color: oklch(61.6% 0.144 337.1);
Tailwind
colors: {
  custom: {
    50: '#d18fbf',
    500: '#ba5fa4',
    950: '#000000',
  },
}
SCSS
$custom: #ba5fa4;
$custom-light: #d18fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#ba5fa4",
  "rgb": {
    "r": 186,
    "g": 95,
    "b": 164
  },
  "hsl": {
    "h": 314.505,
    "s": 39.738,
    "l": 55.098
  },
  "oklch": {
    "l": 0.6158,
    "c": 0.14449,
    "h": 337.1
  },
  "luminance": 0.21304
}

Semantic roles & 50–950 ramp

primary
#BA5FA4
secondary
#A7CDB1
accent
#D07558
background
#FDF9FB
surface
#FAF1F7
border
#D3CBD0
text
#140D12
muted
#837E81

Preview Lab

Preview with #BA5FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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