#BA226D#BA226D

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

Color values

HEX#BA226D
RGBrgb(186, 34, 109)
HSLhsl(330, 69%, 43%)
HSVhsv(330, 82%, 73%)
CMYKcmyk(0%, 81.7%, 41.4%, 27.1%)
CIE-LABlab(42.29, 62.93, -4.31)
CIE-LCHlch(42.29, 63.08, 356.08°)
OKLaboklab(52.81% 0.1937 -0.0105)
OKLCHoklch(52.81% 0.194 356.9)
XYZxyz(23.5838, 12.6904, 15.6726)
Luminance0.1269 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA226D #22BA6F
analogous
#BA22B9 #BA226D #BA2322
triadic
#BA226D #6DBA22 #226DBA
tetradic
#BA226D #B9BA22 #22BA6F #2322BA
square
#BA226D #B9BA22 #22BA6F #2322BA
split-complementary
#BA226D #22BA23 #22B9BA
monochromatic
#530F30 #86194F #BA226D #DC3E8C #E571AA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##BA226D#FFFFFF#000000##FFFFFF
##BA226D1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#45526F
Deuteranopia (green-blind)
#6F6E6A
Tritanopia (blue-blind)
#CA0045
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #ba226d;
/* rgb */ color: rgb(186, 34, 109);
/* oklch */ color: oklch(52.8% 0.194 356.9);
Tailwind
colors: {
  custom: {
    50: '#d46f96',
    500: '#ba226d',
    950: '#000000',
  },
}
SCSS
$custom: #ba226d;
$custom-light: #d46f96;
$custom-dark: #000000;
JSON
{
  "hex": "#ba226d",
  "rgb": {
    "r": 186,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 330.395,
    "s": 69.091,
    "l": 43.137
  },
  "oklch": {
    "l": 0.52812,
    "c": 0.19403,
    "h": 356.9
  },
  "luminance": 0.12687
}

Semantic roles & 50–950 ramp

primary
#BA226D
secondary
#6CCC9D
accent
#EC953C
background
#FDF7F9
surface
#FBEDF2
border
#D4C8CC
text
#15080D
muted
#837B7E

Preview Lab

Preview with #BA226D

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

Preview Lab → · Contrast checker → · Palette generator →

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