#BA50A2#BA50A2

#BA50A2 is a mid, vivid pink. Relative luminance 0.188; OKLCH L 59.4% C 0.167 H 337.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#BA50A2
RGBrgb(186, 80, 162)
HSLhsl(314, 43%, 52%)
HSVhsv(314, 57%, 73%)
CMYKcmyk(0%, 57%, 12.9%, 27.1%)
CIE-LABlab(50.44, 52.70, -24.06)
CIE-LCHlch(50.44, 57.93, 335.46°)
OKLaboklab(59.44% 0.1542 -0.065)
OKLCHoklch(59.44% 0.167 337.1)
XYZxyz(29.6403, 18.7874, 36.2406)
Luminance0.1878 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#BA50A2 #50BA68
analogous
#9D50BA #BA50A2 #BA506D
triadic
#BA50A2 #A2BA50 #50A2BA
tetradic
#BA50A2 #BA9D50 #50BA68 #506DBA
square
#BA50A2 #BA9D50 #50BA68 #506DBA
split-complementary
#BA50A2 #6DBA50 #50BA9D
monochromatic
#672959 #933A7F #BA50A2 #CB7CB9 #DDA8D1

Accessibility & contrast

On white

4.41
#BA50A2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#BA50A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #BA50A2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##BA50A2#FFFFFF#000000##000000
##BA50A21.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#526EA5
Deuteranopia (green-blind)
#727E9F
Tritanopia (blue-blind)
#C35472
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #ba50a2;
/* rgb */ color: rgb(186, 80, 162);
/* oklch */ color: oklch(59.4% 0.167 337.1);
Tailwind
colors: {
  custom: {
    50: '#d186bd',
    500: '#ba50a2',
    950: '#000000',
  },
}
SCSS
$custom: #ba50a2;
$custom-light: #d186bd;
$custom-dark: #000000;
JSON
{
  "hex": "#ba50a2",
  "rgb": {
    "r": 186,
    "g": 80,
    "b": 162
  },
  "hsl": {
    "h": 313.585,
    "s": 43.443,
    "l": 52.157
  },
  "oklch": {
    "l": 0.59444,
    "c": 0.16735,
    "h": 337.1
  },
  "luminance": 0.18785
}

Semantic roles & 50–950 ramp

primary
#BA50A2
secondary
#9CCAA6
accent
#D37155
background
#FDF8FB
surface
#FAF0F6
border
#D3CBD0
text
#140C12
muted
#837D81

Preview Lab

Preview with #BA50A2

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

Preview Lab → · Contrast checker → · Palette generator →

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