#BA226B#BA226B

#BA226B is a mid, vivid pink. Relative luminance 0.126; OKLCH L 52.7% C 0.193 H 357.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#BA226B
RGBrgb(186, 34, 107)
HSLhsl(331, 69%, 43%)
HSVhsv(331, 82%, 73%)
CMYKcmyk(0%, 81.7%, 42.5%, 27.1%)
CIE-LABlab(42.23, 62.74, -3.16)
CIE-LCHlch(42.23, 62.82, 357.12°)
OKLaboklab(52.74% 0.1931 -0.0075)
OKLCHoklch(52.74% 0.193 357.8)
XYZxyz(23.4774, 12.6478, 15.1121)
Luminance0.1265 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA226B #22BA71
analogous
#BA22B7 #BA226B #BA2522
triadic
#BA226B #6BBA22 #226BBA
tetradic
#BA226B #B7BA22 #22BA71 #2522BA
square
#BA226B #B7BA22 #22BA71 #2522BA
split-complementary
#BA226B #22BA25 #22B7BA
monochromatic
#530F2F #86194D #BA226B #DC3E89 #E571A9

Accessibility & contrast

On white

5.95
#BA226B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #BA226B
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA226B#FFFFFF#000000##FFFFFF
##BA226B1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#46526D
Deuteranopia (green-blind)
#706E68
Tritanopia (blue-blind)
#CA0044
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba226b;
/* rgb */ color: rgb(186, 34, 107);
/* oklch */ color: oklch(52.7% 0.193 357.8);
Tailwind
colors: {
  custom: {
    50: '#d46f95',
    500: '#ba226b',
    950: '#000000',
  },
}
SCSS
$custom: #ba226b;
$custom-light: #d46f95;
$custom-dark: #000000;
JSON
{
  "hex": "#ba226b",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 331.184,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52743,
    "c": 0.19328,
    "h": 357.8
  },
  "luminance": 0.12645
}

Semantic roles & 50–950 ramp

primary
#BA226B
secondary
#6CCC9E
accent
#EC973C
background
#FDF7F9
surface
#FBEDF1
border
#D4C8CB
text
#15080D
muted
#837B7E

Preview Lab

Preview with #BA226B

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

Preview Lab → · Contrast checker → · Palette generator →

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