#BA226F#BA226F

#BA226F is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.9% C 0.195 H 356.0°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#BA226F
RGBrgb(186, 34, 111)
HSLhsl(330, 69%, 43%)
HSVhsv(330, 82%, 73%)
CMYKcmyk(0%, 81.7%, 40.3%, 27.1%)
CIE-LABlab(42.36, 63.12, -5.46)
CIE-LCHlch(42.36, 63.36, 355.06°)
OKLaboklab(52.88% 0.1943 -0.0136)
OKLCHoklch(52.88% 0.195 356)
XYZxyz(23.6927, 12.7340, 16.2461)
Luminance0.1273 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA226F #22BA6D
analogous
#B922BA #BA226F #BA2223
triadic
#BA226F #6FBA22 #226FBA
tetradic
#BA226F #BAB922 #22BA6D #2223BA
square
#BA226F #BAB922 #22BA6D #2223BA
split-complementary
#BA226F #23BA22 #22BAB9
monochromatic
#530F31 #861950 #BA226F #DC3E8E #E571AC

Accessibility & contrast

On white

5.92
#BA226F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#BA226F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA226F
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA226F#FFFFFF#000000##FFFFFF
##BA226F1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455271
Deuteranopia (green-blind)
#6F6E6C
Tritanopia (blue-blind)
#C90046
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba226f;
/* rgb */ color: rgb(186, 34, 111);
/* oklch */ color: oklch(52.9% 0.195 356.0);
Tailwind
colors: {
  custom: {
    50: '#d46f98',
    500: '#ba226f',
    950: '#000000',
  },
}
SCSS
$custom: #ba226f;
$custom-light: #d46f98;
$custom-dark: #000000;
JSON
{
  "hex": "#ba226f",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 111
  },
  "hsl": {
    "h": 329.605,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52882,
    "c": 0.19481,
    "h": 356
  },
  "luminance": 0.12731
}

Semantic roles & 50–950 ramp

primary
#BA226F
secondary
#6CCC9B
accent
#EC933C
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15080D
muted
#837B7E

Preview Lab

Preview with #BA226F

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

Preview Lab → · Contrast checker → · Palette generator →

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