#BA239B#BA239B

#BA239B is a mid, highly saturated pink. Relative luminance 0.140; OKLCH L 54.8% C 0.217 H 338.4°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#BA239B
RGBrgb(186, 35, 155)
HSLhsl(312, 68%, 43%)
HSVhsv(312, 81%, 73%)
CMYKcmyk(0%, 81.2%, 16.7%, 27.1%)
CIE-LABlab(44.25, 68.05, -29.51)
CIE-LCHlch(44.25, 74.17, 336.56°)
OKLaboklab(54.84% 0.2021 -0.0801)
OKLCHoklch(54.84% 0.217 338.4)
XYZxyz(26.7678, 14.0104, 32.2986)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA239B #23BA42
analogous
#8D23BA #BA239B #BA234F
triadic
#BA239B #9BBA23 #239BBA
tetradic
#BA239B #BA8D23 #23BA42 #234FBA
square
#BA239B #BA8D23 #23BA42 #234FBA
split-complementary
#BA239B #4FBA23 #23BA8D
monochromatic
#531045 #861970 #BA239B #DB3FBB #E573CD

Accessibility & contrast

On white

5.52
#BA239B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#BA239B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #BA239B
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA239B#FFFFFF#000000##FFFFFF
##BA239B1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5A9E
Deuteranopia (green-blind)
#617198
Tritanopia (blue-blind)
#C52C5F
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #ba239b;
/* rgb */ color: rgb(186, 35, 155);
/* oklch */ color: oklch(54.8% 0.217 338.4);
Tailwind
colors: {
  custom: {
    50: '#d371b9',
    500: '#ba239b',
    950: '#000000',
  },
}
SCSS
$custom: #ba239b;
$custom-light: #d371b9;
$custom-dark: #000000;
JSON
{
  "hex": "#ba239b",
  "rgb": {
    "r": 186,
    "g": 35,
    "b": 155
  },
  "hsl": {
    "h": 312.318,
    "s": 68.326,
    "l": 43.333
  },
  "oklch": {
    "l": 0.54836,
    "c": 0.21742,
    "h": 338.4
  },
  "luminance": 0.14008
}

Semantic roles & 50–950 ramp

primary
#BA239B
secondary
#6DCC81
accent
#EB603D
background
#FDF7FB
surface
#FBEDF6
border
#D4C8D0
text
#150911
muted
#837B80

Preview Lab

Preview with #BA239B

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

Preview Lab → · Contrast checker → · Palette generator →

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