#BA2F82#BA2F82

#BA2F82 is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.6% C 0.191 H 348.8°. Best body text is #FFFFFF at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#BA2F82
RGBrgb(186, 47, 130)
HSLhsl(324, 60%, 46%)
HSVhsv(324, 75%, 73%)
CMYKcmyk(0%, 74.7%, 30.1%, 27.1%)
CIE-LABlab(44.36, 61.46, -14.18)
CIE-LCHlch(44.36, 63.08, 347.01°)
OKLaboklab(54.56% 0.1875 -0.0372)
OKLCHoklch(54.56% 0.191 348.8)
XYZxyz(25.2968, 14.0867, 22.5016)
Luminance0.1408 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F82 #2FBA67
analogous
#AD2FBA #BA2F82 #BA2F3C
triadic
#BA2F82 #82BA2F #2F82BA
tetradic
#BA2F82 #BAAD2F #2FBA67 #2F3CBA
square
#BA2F82 #BAAD2F #2FBA67 #2F3CBA
split-complementary
#BA2F82 #3CBA2F #2FBAAD
monochromatic
#58163E #892360 #BA2F82 #D353A0 #E084BB

Accessibility & contrast

On white

5.50
#BA2F82 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#BA2F82 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F82
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F82#FFFFFF#000000##FFFFFF
##BA2F821.005.503.825.50
#FFFFFF5.501.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455984
Deuteranopia (green-blind)
#6D727F
Tritanopia (blue-blind)
#C82855
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba2f82;
/* rgb */ color: rgb(186, 47, 130);
/* oklch */ color: oklch(54.6% 0.191 348.8);
Tailwind
colors: {
  custom: {
    50: '#d375a6',
    500: '#ba2f82',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f82;
$custom-light: #d375a6;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f82",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 324.173,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54563,
    "c": 0.19118,
    "h": 348.8
  },
  "luminance": 0.14084
}

Semantic roles & 50–950 ramp

primary
#BA2F82
secondary
#7CC99B
accent
#E38545
background
#FDF7FA
surface
#FBEEF4
border
#D4C9CE
text
#15090F
muted
#837B7F

Preview Lab

Preview with #BA2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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