#BA2F9D#BA2F9D

#BA2F9D is a mid, highly saturated pink. Relative luminance 0.149; OKLCH L 55.8% C 0.207 H 337.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#BA2F9D
RGBrgb(186, 47, 157)
HSLhsl(313, 60%, 46%)
HSVhsv(313, 75%, 73%)
CMYKcmyk(0%, 74.7%, 15.6%, 27.1%)
CIE-LABlab(45.51, 64.98, -28.74)
CIE-LCHlch(45.51, 71.05, 336.14°)
OKLaboklab(55.78% 0.1922 -0.078)
OKLCHoklch(55.78% 0.207 337.9)
XYZxyz(27.3526, 14.9091, 33.3289)
Luminance0.1491 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F9D #2FBA4C
analogous
#912FBA #BA2F9D #BA2F57
triadic
#BA2F9D #9DBA2F #2F9DBA
tetradic
#BA2F9D #BA912F #2FBA4C #2F57BA
square
#BA2F9D #BA912F #2FBA4C #2F57BA
split-complementary
#BA2F9D #57BA2F #2FBA91
monochromatic
#58164B #892374 #BA2F9D #D353B9 #E084CD

Accessibility & contrast

On white

5.27
#BA2F9D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#BA2F9D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F9D
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F9D#FFFFFF#000000##FFFFFF
##BA2F9D1.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA0
Deuteranopia (green-blind)
#64739A
Tritanopia (blue-blind)
#C43763
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2f9d;
/* rgb */ color: rgb(186, 47, 157);
/* oklch */ color: oklch(55.8% 0.207 337.9);
Tailwind
colors: {
  custom: {
    50: '#d376ba',
    500: '#ba2f9d',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f9d;
$custom-light: #d376ba;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f9d",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 157
  },
  "hsl": {
    "h": 312.518,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55775,
    "c": 0.20746,
    "h": 337.9
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#BA2F9D
secondary
#7CC98C
accent
#E36645
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA2F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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