#BA239C#BA239C

#BA239C is a mid, highly saturated pink. Relative luminance 0.140; OKLCH L 54.9% C 0.218 H 338.0°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#BA239C
RGBrgb(186, 35, 156)
HSLhsl(312, 68%, 43%)
HSVhsv(312, 81%, 73%)
CMYKcmyk(0%, 81.2%, 16.1%, 27.1%)
CIE-LABlab(44.30, 68.19, -30.03)
CIE-LCHlch(44.30, 74.51, 336.23°)
OKLaboklab(54.89% 0.2022 -0.0816)
OKLCHoklch(54.89% 0.218 338)
XYZxyz(26.8521, 14.0441, 32.7427)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA239C #23BA41
analogous
#8D23BA #BA239C #BA2350
triadic
#BA239C #9CBA23 #239CBA
tetradic
#BA239C #BA8D23 #23BA41 #2350BA
square
#BA239C #BA8D23 #23BA41 #2350BA
split-complementary
#BA239C #50BA23 #23BA8D
monochromatic
#531046 #861971 #BA239C #DB3FBC #E573CE

Accessibility & contrast

On white

5.51
#BA239C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#BA239C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA239C
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA239C#FFFFFF#000000##FFFFFF
##BA239C1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5A9F
Deuteranopia (green-blind)
#617199
Tritanopia (blue-blind)
#C52D5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba239c;
/* rgb */ color: rgb(186, 35, 156);
/* oklch */ color: oklch(54.9% 0.218 338.0);
Tailwind
colors: {
  custom: {
    50: '#d371b9',
    500: '#ba239c',
    950: '#000000',
  },
}
SCSS
$custom: #ba239c;
$custom-light: #d371b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba239c",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 156
  },
  "hsl": {
    "h": 311.921,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54887,
    "c": 0.21805,
    "h": 338
  },
  "luminance": 0.14041
}

Semantic roles & 50–950 ramp

primary
#BA239C
secondary
#6DCC80
accent
#EB5F3D
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA239C

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

Preview Lab → · Contrast checker → · Palette generator →

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