#BA226E#BA226E

#BA226E is a mid, vivid pink. Relative luminance 0.127; OKLCH L 52.8% C 0.194 H 356.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#BA226E
RGBrgb(186, 34, 110)
HSLhsl(330, 69%, 43%)
HSVhsv(330, 82%, 73%)
CMYKcmyk(0%, 81.7%, 40.9%, 27.1%)
CIE-LABlab(42.33, 63.03, -4.88)
CIE-LCHlch(42.33, 63.22, 355.57°)
OKLaboklab(52.85% 0.194 -0.0121)
OKLCHoklch(52.85% 0.194 356.4)
XYZxyz(23.6380, 12.7121, 15.9578)
Luminance0.1271 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA226E #22BA6E
analogous
#BA22BA #BA226E #BA2222
triadic
#BA226E #6EBA22 #226EBA
tetradic
#BA226E #BABA22 #22BA6E #2222BA
square
#BA226E #BABA22 #22BA6E #2222BA
split-complementary
#BA226E #22BA22 #22BABA
monochromatic
#530F31 #86194F #BA226E #DC3E8D #E571AB

Accessibility & contrast

On white

5.93
#BA226E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#BA226E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA226E
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA226E#FFFFFF#000000##FFFFFF
##BA226E1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#455270
Deuteranopia (green-blind)
#6F6E6B
Tritanopia (blue-blind)
#CA0046
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba226e;
/* rgb */ color: rgb(186, 34, 110);
/* oklch */ color: oklch(52.8% 0.194 356.4);
Tailwind
colors: {
  custom: {
    50: '#d46f97',
    500: '#ba226e',
    950: '#000000',
  },
}
SCSS
$custom: #ba226e;
$custom-light: #d46f97;
$custom-dark: #000000;
JSON
{
  "hex": "#ba226e",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 110
  },
  "hsl": {
    "h": 330,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52847,
    "c": 0.19441,
    "h": 356.4
  },
  "luminance": 0.12709
}

Semantic roles & 50–950 ramp

primary
#BA226E
secondary
#6CCC9C
accent
#EC943C
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15080D
muted
#837B7E

Preview Lab

Preview with #BA226E

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

Preview Lab → · Contrast checker → · Palette generator →

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