#BA226C#BA226C

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

Color values

HEX#BA226C
RGBrgb(186, 34, 108)
HSLhsl(331, 69%, 43%)
HSVhsv(331, 82%, 73%)
CMYKcmyk(0%, 81.7%, 41.9%, 27.1%)
CIE-LABlab(42.26, 62.83, -3.73)
CIE-LCHlch(42.26, 62.94, 356.60°)
OKLaboklab(52.78% 0.1934 -0.009)
OKLCHoklch(52.78% 0.194 357.3)
XYZxyz(23.5303, 12.6690, 15.3907)
Luminance0.1267 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA226C #22BA70
analogous
#BA22B8 #BA226C #BA2422
triadic
#BA226C #6CBA22 #226CBA
tetradic
#BA226C #B8BA22 #22BA70 #2422BA
square
#BA226C #B8BA22 #22BA70 #2422BA
split-complementary
#BA226C #22BA24 #22B8BA
monochromatic
#530F30 #86194E #BA226C #DC3E8B #E571AA

Accessibility & contrast

On white

5.94
#BA226C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#BA226C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA226C
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA226C#FFFFFF#000000##FFFFFF
##BA226C1.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46526E
Deuteranopia (green-blind)
#6F6E69
Tritanopia (blue-blind)
#CA0045
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba226c;
/* rgb */ color: rgb(186, 34, 108);
/* oklch */ color: oklch(52.8% 0.194 357.3);
Tailwind
colors: {
  custom: {
    50: '#d46f96',
    500: '#ba226c',
    950: '#000000',
  },
}
SCSS
$custom: #ba226c;
$custom-light: #d46f96;
$custom-dark: #000000;
JSON
{
  "hex": "#ba226c",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 330.789,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52777,
    "c": 0.19365,
    "h": 357.3
  },
  "luminance": 0.12666
}

Semantic roles & 50–950 ramp

primary
#BA226C
secondary
#6CCC9D
accent
#EC963C
background
#FDF7F9
surface
#FBEDF1
border
#D4C8CB
text
#15080D
muted
#837B7E

Preview Lab

Preview with #BA226C

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

Preview Lab → · Contrast checker → · Palette generator →

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