#BA4FA2#BA4FA2

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

Color values

HEX#BA4FA2
RGBrgb(186, 79, 162)
HSLhsl(313, 44%, 52%)
HSVhsv(313, 58%, 73%)
CMYKcmyk(0%, 57.5%, 12.9%, 27.1%)
CIE-LABlab(50.27, 53.16, -24.32)
CIE-LCHlch(50.27, 58.46, 335.42°)
OKLaboklab(59.32% 0.1556 -0.0658)
OKLCHoklch(59.32% 0.169 337.1)
XYZxyz(29.5676, 18.6420, 36.2164)
Luminance0.1864 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA4FA2 #4FBA67
analogous
#9D4FBA #BA4FA2 #BA4F6D
triadic
#BA4FA2 #A2BA4F #4FA2BA
tetradic
#BA4FA2 #BA9D4F #4FBA67 #4F6DBA
square
#BA4FA2 #BA9D4F #4FBA67 #4F6DBA
split-complementary
#BA4FA2 #6DBA4F #4FBA9D
monochromatic
#662858 #92397E #BA4FA2 #CB7BB9 #DCA7D0

Accessibility & contrast

On white

4.44
#BA4FA2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#BA4FA2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA4FA2
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA4FA2#FFFFFF#000000##000000
##BA4FA21.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#516DA5
Deuteranopia (green-blind)
#717E9F
Tritanopia (blue-blind)
#C35471
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba4fa2;
/* rgb */ color: rgb(186, 79, 162);
/* oklch */ color: oklch(59.3% 0.169 337.1);
Tailwind
colors: {
  custom: {
    50: '#d186bd',
    500: '#ba4fa2',
    950: '#000000',
  },
}
SCSS
$custom: #ba4fa2;
$custom-light: #d186bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba4fa2",
  "rgb": {
    "r": 186,
    "g": 79,
    "b": 162
  },
  "hsl": {
    "h": 313.458,
    "s": 43.673,
    "l": 51.961
  },
  "oklch": {
    "l": 0.59317,
    "c": 0.1689,
    "h": 337.1
  },
  "luminance": 0.1864
}

Semantic roles & 50–950 ramp

primary
#BA4FA2
secondary
#9BCAA5
accent
#D37154
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140B12
muted
#837C81

Preview Lab

Preview with #BA4FA2

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

Preview Lab → · Contrast checker → · Palette generator →

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