#BA2F9E#BA2F9E

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

Color values

HEX#BA2F9E
RGBrgb(186, 47, 158)
HSLhsl(312, 60%, 46%)
HSVhsv(312, 75%, 73%)
CMYKcmyk(0%, 74.7%, 15.1%, 27.1%)
CIE-LABlab(45.56, 65.12, -29.26)
CIE-LCHlch(45.56, 71.40, 335.80°)
OKLaboklab(55.82% 0.1923 -0.0795)
OKLCHoklch(55.82% 0.208 337.5)
XYZxyz(27.4383, 14.9433, 33.7804)
Luminance0.1494 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA2F9E #2FBA4B
analogous
#902FBA #BA2F9E #BA2F59
triadic
#BA2F9E #9EBA2F #2F9EBA
tetradic
#BA2F9E #BA902F #2FBA4B #2F59BA
square
#BA2F9E #BA902F #2FBA4B #2F59BA
split-complementary
#BA2F9E #59BA2F #2FBA90
monochromatic
#58164B #892374 #BA2F9E #D353BA #E084CD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA2F9E#FFFFFF#000000##FFFFFF
##BA2F9E1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#345EA1
Deuteranopia (green-blind)
#64739B
Tritanopia (blue-blind)
#C43763
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #ba2f9e;
/* rgb */ color: rgb(186, 47, 158);
/* oklch */ color: oklch(55.8% 0.208 337.5);
Tailwind
colors: {
  custom: {
    50: '#d376bb',
    500: '#ba2f9e',
    950: '#000000',
  },
}
SCSS
$custom: #ba2f9e;
$custom-light: #d376bb;
$custom-dark: #000000;
JSON
{
  "hex": "#ba2f9e",
  "rgb": {
    "r": 186,
    "g": 47,
    "b": 158
  },
  "hsl": {
    "h": 312.086,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.55824,
    "c": 0.20813,
    "h": 337.5
  },
  "luminance": 0.14941
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #BA2F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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