#BA4FA1#BA4FA1

#BA4FA1 is a mid, vivid pink. Relative luminance 0.186; OKLCH L 59.3% C 0.168 H 337.5°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#BA4FA1
RGBrgb(186, 79, 161)
HSLhsl(314, 44%, 52%)
HSVhsv(314, 58%, 73%)
CMYKcmyk(0%, 57.5%, 13.4%, 27.1%)
CIE-LABlab(50.22, 53.00, -23.80)
CIE-LCHlch(50.22, 58.10, 335.82°)
OKLaboklab(59.27% 0.1554 -0.0643)
OKLCHoklch(59.27% 0.168 337.5)
XYZxyz(29.4791, 18.6066, 35.7501)
Luminance0.1860 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA1 #4FBA68
analogous
#9E4FBA #BA4FA1 #BA4F6C
triadic
#BA4FA1 #A1BA4F #4FA1BA
tetradic
#BA4FA1 #BA9E4F #4FBA68 #4F6CBA
square
#BA4FA1 #BA9E4F #4FBA68 #4F6CBA
split-complementary
#BA4FA1 #6CBA4F #4FBA9E
monochromatic
#662858 #92397E #BA4FA1 #CB7BB8 #DCA7D0

Accessibility & contrast

On white

4.45
#BA4FA1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#BA4FA1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FA1
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FA1#FFFFFF#000000##000000
##BA4FA11.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#526DA4
Deuteranopia (green-blind)
#717E9E
Tritanopia (blue-blind)
#C35371
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #ba4fa1;
/* rgb */ color: rgb(186, 79, 161);
/* oklch */ color: oklch(59.3% 0.168 337.5);
Tailwind
colors: {
  custom: {
    50: '#d186bd',
    500: '#ba4fa1',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa1;
$custom-light: #d186bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa1",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 161
  },
  "hsl": {
    "h": 314.019,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59273,
    "c": 0.16814,
    "h": 337.5
  },
  "luminance": 0.18604
}

Semantic roles & 50–950 ramp

primary
#BA4FA1
secondary
#9BCAA6
accent
#D37254
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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