#BA2F9B#BA2F9B

#BA2F9B is a mid, highly saturated pink. Relative luminance 0.148; OKLCH L 55.7% C 0.206 H 338.7°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#BA2F9B
RGBrgb(186, 47, 155)
HSLhsl(313, 60%, 46%)
HSVhsv(313, 75%, 73%)
CMYKcmyk(0%, 74.7%, 16.7%, 27.1%)
CIE-LABlab(45.42, 64.70, -27.68)
CIE-LCHlch(45.42, 70.38, 336.83°)
OKLaboklab(55.68% 0.192 -0.075)
OKLCHoklch(55.68% 0.206 338.7)
XYZxyz(27.1833, 14.8413, 32.4370)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F9B #2FBA4E
analogous
#932FBA #BA2F9B #BA2F55
triadic
#BA2F9B #9BBA2F #2F9BBA
tetradic
#BA2F9B #BA932F #2FBA4E #2F55BA
square
#BA2F9B #BA932F #2FBA4E #2F55BA
split-complementary
#BA2F9B #55BA2F #2FBA93
monochromatic
#58164A #892372 #BA2F9B #D353B7 #E084CB

Accessibility & contrast

On white

5.29
#BA2F9B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#BA2F9B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F9B
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F9B#FFFFFF#000000##FFFFFF
##BA2F9B1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375E9E
Deuteranopia (green-blind)
#657398
Tritanopia (blue-blind)
#C53662
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2f9b;
/* rgb */ color: rgb(186, 47, 155);
/* oklch */ color: oklch(55.7% 0.206 338.7);
Tailwind
colors: {
  custom: {
    50: '#d376b9',
    500: '#ba2f9b',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f9b;
$custom-light: #d376b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f9b",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 155
  },
  "hsl": {
    "h": 313.381,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55677,
    "c": 0.20614,
    "h": 338.7
  },
  "luminance": 0.14839
}

Semantic roles & 50–950 ramp

primary
#BA2F9B
secondary
#7CC98D
accent
#E36845
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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