#BA2F97#BA2F97

#BA2F97 is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.5% C 0.204 H 340.2°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#BA2F97
RGBrgb(186, 47, 151)
HSLhsl(315, 60%, 46%)
HSVhsv(315, 75%, 73%)
CMYKcmyk(0%, 74.7%, 18.8%, 27.1%)
CIE-LABlab(45.23, 64.15, -25.57)
CIE-LCHlch(45.23, 69.06, 338.27°)
OKLaboklab(55.49% 0.1915 -0.069)
OKLCHoklch(55.49% 0.204 340.2)
XYZxyz(26.8529, 14.7092, 30.6971)
Luminance0.1471 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F97 #2FBA52
analogous
#972FBA #BA2F97 #BA2F51
triadic
#BA2F97 #97BA2F #2F97BA
tetradic
#BA2F97 #BA972F #2FBA52 #2F51BA
square
#BA2F97 #BA972F #2FBA52 #2F51BA
split-complementary
#BA2F97 #51BA2F #2FBA97
monochromatic
#581648 #89236F #BA2F97 #D353B3 #E084C9

Accessibility & contrast

On white

5.33
#BA2F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#BA2F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F97
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F97#FFFFFF#000000##FFFFFF
##BA2F971.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#395D9A
Deuteranopia (green-blind)
#677394
Tritanopia (blue-blind)
#C53360
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #ba2f97;
/* rgb */ color: rgb(186, 47, 151);
/* oklch */ color: oklch(55.5% 0.204 340.2);
Tailwind
colors: {
  custom: {
    50: '#d375b6',
    500: '#ba2f97',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f97;
$custom-light: #d375b6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f97",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 315.108,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55486,
    "c": 0.20354,
    "h": 340.2
  },
  "luminance": 0.14706
}

Semantic roles & 50–950 ramp

primary
#BA2F97
secondary
#7CC98F
accent
#E36D45
background
#FDF7FB
surface
#FBEEF6
border
#D4C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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