#BA2F9F#BA2F9F

#BA2F9F is a mid, highly saturated pink. Relative luminance 0.150; OKLCH L 55.9% C 0.209 H 337.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#BA2F9F
RGBrgb(186, 47, 159)
HSLhsl(312, 60%, 46%)
HSVhsv(312, 75%, 73%)
CMYKcmyk(0%, 74.7%, 14.5%, 27.1%)
CIE-LABlab(45.60, 65.27, -29.79)
CIE-LCHlch(45.60, 71.74, 335.47°)
OKLaboklab(55.87% 0.1925 -0.081)
OKLCHoklch(55.87% 0.209 337.2)
XYZxyz(27.5248, 14.9779, 34.2356)
Luminance0.1497 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F9F #2FBA4A
analogous
#902FBA #BA2F9F #BA2F59
triadic
#BA2F9F #9FBA2F #2F9FBA
tetradic
#BA2F9F #BA902F #2FBA4A #2F59BA
square
#BA2F9F #BA902F #2FBA4A #2F59BA
split-complementary
#BA2F9F #59BA2F #2FBA90
monochromatic
#58164B #892375 #BA2F9F #D353BA #E084CE

Accessibility & contrast

On white

5.26
#BA2F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#BA2F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA2F9F
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA2F9F#FFFFFF#000000##FFFFFF
##BA2F9F1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#335EA2
Deuteranopia (green-blind)
#63749C
Tritanopia (blue-blind)
#C43864
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2f9f;
/* rgb */ color: rgb(186, 47, 159);
/* oklch */ color: oklch(55.9% 0.209 337.2);
Tailwind
colors: {
  custom: {
    50: '#d376bb',
    500: '#ba2f9f',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f9f;
$custom-light: #d376bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f9f",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 159
  },
  "hsl": {
    "h": 311.655,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55874,
    "c": 0.20881,
    "h": 337.2
  },
  "luminance": 0.14975
}

Semantic roles & 50–950 ramp

primary
#BA2F9F
secondary
#7CC98B
accent
#E36445
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#150912
muted
#837B81

Preview Lab

Preview with #BA2F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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